from machine import Pin, PWM

import time
pwm25 = PWM(Pin(19))
while True:
    #from machine impor Pin, PWM
    pwm25.freq(2000)
    while True:
        for d in range(0,65535,655):
            pwm25.duty_u16(d)
            time.sleep_ms(100)
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT