from machine import Pin
from utime import sleep

btn = Pin(15,Pin.IN, Pin.PULL_DOWN)
led = Pin(25,Pin.OUT)

while True:
    if btn.value()==1:
        led.value(not led.value())
        sleep(0.1)
sleep(0.1)  
   

BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT