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