pull/144/head
ZodiusInfuser 2021-05-13 15:38:00 +01:00 zatwierdzone przez Phil Howard
rodzic 524e590298
commit 707aeba5aa
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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")