import machine
import time

button = machine.Pin(6, machine.Pin.IN, machine.Pin.PULL_UP)
while True:
  print("Button state", button.value())
  time.sleep(0.1)
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT