Skip to content

Commit 1fd58d6

Browse files
committed
adding elif
1 parent 4380b22 commit 1fd58d6

File tree

1 file changed

+1
-1
lines changed
  • NeoKey_BFF_Examples/CP_Keyboard_Example

1 file changed

+1
-1
lines changed

NeoKey_BFF_Examples/CP_Keyboard_Example/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
switch_state = False
4444

4545
# if the button is pressed..
46-
if not switch.value and not switch_state:
46+
elif not switch.value and not switch_state:
4747
pixels.fill(pixel_color)
4848
pixels.show()
4949
keyboard.press(modifier_key, key)

0 commit comments

Comments
 (0)