tweak
This commit is contained in:
parent
2ee2143839
commit
1ee6b2e95c
2
main.py
2
main.py
@ -9,7 +9,7 @@ async def button_press(pin:int):
|
|||||||
GPIO.setup(pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
|
GPIO.setup(pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
|
||||||
while True:
|
while True:
|
||||||
button_state = GPIO.input(pin)
|
button_state = GPIO.input(pin)
|
||||||
if button_state == False:
|
if button_state == True:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user