Startanimation
This commit is contained in:
parent
ad053d624b
commit
9defb76dad
1 changed files with 10 additions and 2 deletions
12
code/code.py
12
code/code.py
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue