from machine import Pin
from utime import sleep
'''
buzzer=Pin(0,Pin.OUT)
led=Pin(1,Pin.OUT)
button=Pin(2,Pin.IN,Pin.PULL_DOWN)
while True:
    if button.value():
        buzzer.value(1)
        led.value(1)
        sleep(0.5)
        print("LED ON")
    else:
        buzzer.value(0)
        led.value(0)
        sleep(0.5)'''
buzzer=Pin(13,Pin.OUT)
button=Pin(14,Pin.IN)
while True:
    if button.value()==1:
        buzzer.value(1)
        print("LED is ON")
    elif button.value()==0:
        buzzer.value(0)
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT