summaryrefslogtreecommitdiffstats
path: root/prog/jelka/vzorci/nov_vzorec.py
blob: 67ae4a1f6c849893bdaa9abc10568ade353559a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/python3
# Preprost vzorec 3
from jelka import luči, nastavi, izriši
import time
run = 0
while True:
	for i in range(luči):
		if run % luči == i:
			nastavi(i, (0xff, 0xff, 0xff))
		else:
			nastavi(i, (0, 0, 0))
	izriši()
	time.sleep(0.1)
	run += 1