from machine import Pin
from time import sleep
print("start")
button_pin = Pin(0,Pin.IN,Pin.PULL_DOWN)
while True:
button_state = button_pin.value()
print(button_state)
sleep (0.5)from machine import Pin
from time import sleep
print("start")
button_pin = Pin(0,Pin.IN,Pin.PULL_DOWN)
while True:
button_state = button_pin.value()
print(button_state)
sleep (0.5)