Kommentare

This commit is contained in:
Michael Grote 2021-08-25 11:56:14 +02:00
parent a385b59507
commit ad053d624b

View file

@ -93,11 +93,9 @@ while True:
keybow.update()
# If the modifier key is held, light up the layer selector keys
for layer in layers.keys():
keys[layer].set_led(*colours[layer])
# Change layer if layer key is pressed
if current_layer != layer:
if selectors[layer].pressed:
current_layer = layer