diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2023-11-29 11:05:18 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2023-11-29 11:05:18 +0100 |
commit | acc8625c563a3b05b1cbfdbc94d39870c7a71b42 (patch) | |
tree | e34722420c64be71768923d9b04b611293fcefea /prog/jelka/vzorci/vzorec.py | |
parent | b5 (diff) | |
download | r-acc8625c563a3b05b1cbfdbc94d39870c7a71b42.tar r-acc8625c563a3b05b1cbfdbc94d39870c7a71b42.tar.gz r-acc8625c563a3b05b1cbfdbc94d39870c7a71b42.tar.bz2 r-acc8625c563a3b05b1cbfdbc94d39870c7a71b42.tar.lz r-acc8625c563a3b05b1cbfdbc94d39870c7a71b42.tar.xz r-acc8625c563a3b05b1cbfdbc94d39870c7a71b42.tar.zst r-acc8625c563a3b05b1cbfdbc94d39870c7a71b42.zip |
Diffstat (limited to '')
-rwxr-xr-x | prog/jelka/vzorci/vzorec.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/prog/jelka/vzorci/vzorec.py b/prog/jelka/vzorci/vzorec.py new file mode 100755 index 0000000..9e9eab0 --- /dev/null +++ b/prog/jelka/vzorci/vzorec.py @@ -0,0 +1,13 @@ +#!/usr/bin/python3 +# Preprost vzorec +from jelka import luči, nastavi, izriši +import time +while True: + for i in range(luči): + nastavi(i, (0, 255, 0)) + izriši() + time.sleep(0.1) + for i in range(luči): + nastavi(i, (0, 0, 0)) + izriši() + time.sleep(0.1) |