from machine import Pin
from utime import sleep

print("Hello, Pi Pico!")

led = Pin(5, Pin.OUT)
button = Pin(26, Pin.IN, Pin.PULL_UP)
while True:
  button_state = button.value()
  print(button_state)
  if (button_state == 1): led.value(0)
  elif (button_state == 0): led.value(1)
  sleep(0.25)
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT