from machine import Pin
import time
button = Pin(35, Pin.IN, Pin.PULL_UP)
while True:
print(button.value())
time.sleep(1)
from machine import Pin
import time
button = Pin(35, Pin.IN, Pin.PULL_UP)
while True:
print(button.value())
time.sleep(1)