diff options
Diffstat (limited to 'prog/jelka/vzorci/vzorec.py')
-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) |