adding elif
This commit is contained in:
parent
4380b22136
commit
1fd58d657e
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ while True:
|
|||
switch_state = False
|
||||
|
||||
# if the button is pressed..
|
||||
if not switch.value and not switch_state:
|
||||
elif not switch.value and not switch_state:
|
||||
pixels.fill(pixel_color)
|
||||
pixels.show()
|
||||
keyboard.press(modifier_key, key)
|
||||
|
|
|
|||
Loading…
Reference in a new issue