Startanimation

This commit is contained in:
Michael Grote 2021-08-25 13:25:57 +02:00
parent ad053d624b
commit 9defb76dad

View file

@ -88,11 +88,20 @@ long_debounce = 0.15
debounce = short_debounce
fired = False
# startanimation - 8bit
keybow.set_all(0,0,255)
keybow.set_all(0,255,0)
keybow.set_all(0,255,255)
keybow.set_all(255,0,0)
keybow.set_all(255,0,255)
keybow.set_all(255,255,0)
keybow.set_all(255,255,255)
keybow.set_all(0,0,0)
while True:
# Always remember to call keybow.update()!
keybow.update()
for layer in layers.keys():
keys[layer].set_led(*colours[layer])
@ -122,7 +131,6 @@ while True:
# If the key hasn't just fired (prevents refiring)
if not fired:
fired = True
# Send the right sort of key press and set debounce for each
if current_layer == 0:
keyboard.send(key_press)