import time
time.sleep(0.1) # Wait for USB to become ready
print("Hello, Pi Pico!")
from machine import Pin,PWM
while True:
buzzer = PWM(Pin(0))
buzzer.freq(300)
buzzer.duty_u16(65534)
time.sleep(0.5)
buzzer.duty_u16(0)
time.sleep(0.1)