added a led-test
This commit is contained in:
parent
36ce0ee634
commit
775deab0b3
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,6 @@
|
|||||||
# Persistence
|
# Persistence
|
||||||
prst.*
|
prst.*
|
||||||
|
|
||||||
log.txt
|
log.txt
|
||||||
# API-Key (keep secret at all times)
|
# API-Key (keep secret at all times)
|
||||||
keys.py
|
keys.py
|
||||||
|
9
clock/api/hat/tester.py
Normal file
9
clock/api/hat/tester.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import unicorn
|
||||||
|
|
||||||
|
led = unicorn.UnicornHat(32,16)
|
||||||
|
|
||||||
|
for i in range(16*32):
|
||||||
|
x = i % 32
|
||||||
|
y = i // 32
|
||||||
|
led.set_pixel(x,y, 10, 200, 30)
|
||||||
|
led.show()
|
Loading…
x
Reference in New Issue
Block a user