added a led-test

This commit is contained in:
Remy Moll 2020-12-16 14:04:37 +01:00
parent 36ce0ee634
commit 775deab0b3
2 changed files with 10 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
# Persistence
prst.*
log.txt
# API-Key (keep secret at all times)
keys.py

9
clock/api/hat/tester.py Normal file
View 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()