from machine import Pin
import time
btn = Pin(3, Pin.IN, Pin.PULL_UP)
while True:
print(btn.value())
time.sleep(0.1)from machine import Pin
import time
btn = Pin(3, Pin.IN, Pin.PULL_UP)
while True:
print(btn.value())
time.sleep(0.1)