import time
time.sleep(0.1) # Wait for USB to become ready
print("Hello, Pi Pico!")
from machine import Pin, PWM,ADC
pot =ADC(Pin(27))
buzz = PWM(Pin(9))
buzz.duty_u16(65535 //2)
notes = [1000, 4000, 9000]
duration = [1,2,3]
while True:
print(pot.read_u16())
buzz.freq(int(10 + pot.read_u16() *0.2))
time.sleep(0.01)
'''
for i in range(3):
buzz.freq(notes[i])
time.sleep(duration[i])
'''