from machine import Pin
from utime import sleep

button=Pin(14, mode = Pin.IN, pull = Pin.PULL_UP)
led=Pin(16, Pin.OUT)

while True:
    if button.value()==0:
        led.value(1)
        print("LED IS ON")
        sleep(0.3)
    elif button.value()==1:
        led.value(0)
        '''print("LED IS OFF")'''
        sleep(0.3)
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT