kopia lustrzana https://github.com/pimoroni/pimoroni-pico
MP linting fix
rodzic
524e590298
commit
707aeba5aa
|
@ -11,8 +11,8 @@ last_state = True
|
|||
|
||||
while True:
|
||||
state = ioe.input(ioe_button_pin)
|
||||
if state != last_state:
|
||||
if state == True:
|
||||
if state is not last_state:
|
||||
if state:
|
||||
print("Button has been released")
|
||||
else:
|
||||
print("Button has been pressed")
|
||||
|
|
Ładowanie…
Reference in New Issue