import time
time.sleep(0.1) # Wait for USB to become ready
print("Hello, Pi Pico!")
from machine import Pin, PWM
buzzer = PWM(Pin(5))
duty_on = int(65535 * 0.5)
def no_tone(): buzzer.duty_u16(0)
def tone(fr, fr_time):
buzzer.duty_u16(duty_on)
buzzer.freq(fr)
time.sleep(fr_time)
no_tone()
#-------------BEGIN------------------
tone(200, 1.5)
tone(100, 0.5)