This commit is contained in:
Boyan 2022-07-20 17:14:31 +03:00
parent 2ee2143839
commit 1ee6b2e95c

View File

@ -9,7 +9,7 @@ async def button_press(pin:int):
GPIO.setup(pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
while True:
button_state = GPIO.input(pin)
if button_state == False:
if button_state == True:
pass
else:
break