even better

This commit is contained in:
Remy Moll 2020-12-16 14:16:32 +01:00
parent 6de142aac4
commit 8c14b546d9

@ -1,10 +1,13 @@
import unicorn
led = unicorn.UnicornHat(32,16)
r = 0
b = 0
for i in range(16*32):
x = i % 32
y = i // 32
led.set_pixel(x,y, 10, 200, 30)
r += (x % 16 == 0)*5
b+= (y % 16 == 0)*5
led.set_pixel(x,y, r, 200, b)
if i%2 == 0:
led.show()