summaryrefslogtreecommitdiffstats
path: root/prog/jelka/vzorci/vzorec.py
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-11-29 11:05:18 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2023-11-29 11:05:18 +0100
commitacc8625c563a3b05b1cbfdbc94d39870c7a71b42 (patch)
treee34722420c64be71768923d9b04b611293fcefea /prog/jelka/vzorci/vzorec.py
parentb5 (diff)
downloadr-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-xprog/jelka/vzorci/vzorec.py13
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)