import Pin, PWM,ADC
from machine
pwm =PWM(Pin(10))
adc = ADC(machine.Pin(28))
pwm.freq(1000)
while True:
    duty = adc.read_u16()
    pwm.duty_u16(duty)
$abcdeabcde151015202530fghijfghij
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT