import time
time.sleep(0.1) # Wait for USB to become ready
print("Hello, Pi Pico!")
from time import sleep_ms as delay
from machine import Pin, PWM, ADC
pot = ADC(26)
zum = PWM(Pin(9))
zum.duty_u16(int(0.5*65535))
while True:
current_index = int(pot.read_u16() * 0.2 + 10)
print(current_index)
zum.freq(current_index)
delay(5)