Skip to content

Commit ea66fcb

Browse files
authored
Merge pull request #2529 from kattni/neokey-hid-led-fix
Fix key release pixel effect.
2 parents 5005b17 + e9c4c62 commit ea66fcb

File tree

1 file changed

+1
-1
lines changed
  • NeoKey_MX_and_CHOC_Breakouts/CircuitPython/HID

1 file changed

+1
-1
lines changed

NeoKey_MX_and_CHOC_Breakouts/CircuitPython/HID/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@
7171
# If there is a key released event, run this block.
7272
if event and event.released:
7373
# Turn off the LEDs.
74-
pixels.fill((0, 0, 0))
74+
pixels[event.key_number] = (0, 0, 0)
7575
# Report that the key switch has been released.
7676
keyboard.release_all()

0 commit comments

Comments
 (0)