Merge pull request #2529 from kattni/neokey-hid-led-fix

Fix key release pixel effect.
This commit is contained in:
Anne Barela 2023-06-12 15:54:56 -04:00 committed by GitHub
commit ea66fcb157
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,6 +71,6 @@ while True:
# If there is a key released event, run this block.
if event and event.released:
# Turn off the LEDs.
pixels.fill((0, 0, 0))
pixels[event.key_number] = (0, 0, 0)
# Report that the key switch has been released.
keyboard.release_all()