import machine
import time

p22 = machine.Pin(22, machine.Pin.OUT)
buzzer = machine.PWM(p22)
buzzer.freq(784)  #g3
buzzer.duty(500)
time.sleep(3)
buzzer.duty(0)
buzzer.deinit()

p23 = machine.Pin(23, machine.Pin.OUT)
buzzer = machine.PWM(p23)
buzzer.freq(659) #e5
buzzer.duty(500)
time.sleep(3)
buzzer.duty(0)
buzzer.deinit()

p21 = machine.Pin(21, machine.Pin.OUT)
buzzer = machine.PWM(p21)
buzzer.freq(1047)  #c6
buzzer.duty(500)
time.sleep(3)
buzzer.duty(0)
buzzer.deinit()

p19 = machine.Pin(19, machine.Pin.OUT)
buzzer = machine.PWM(p19)
buzzer.freq(1175)  #d6
buzzer.duty(800)
time.sleep(3)
buzzer.duty(0)
buzzer.deinit()

p18 = machine.Pin(18, machine.Pin.OUT)
buzzer = machine.PWM(p18)
buzzer.freq(880)  #a5
buzzer.duty(300)
time.sleep(3)
buzzer.duty(0)
buzzer.deinit()

p5 = machine.Pin(5, machine.Pin.OUT)
buzzer = machine.PWM(p5)
buzzer.freq(988)  #b5
buzzer.duty(500)
time.sleep(3)
buzzer.duty(0)
buzzer.deinit()

p4 = machine.Pin(4, machine.Pin.OUT)
buzzer = machine.PWM(p4)
buzzer.freq(294)  #d4
buzzer.duty(1)
time.sleep(3)
buzzer.duty(0)
buzzer.deinit()