from machine import Pin,PWM
led_pin = Pin(25,Pin.OUT)
pwm_led = PWM(led_pin)
pwm_led.freq(1_000)
while True:
for duty in range(0,65_536):
pwm_led.duty_u16(duty)from machine import Pin,PWM
led_pin = Pin(25,Pin.OUT)
pwm_led = PWM(led_pin)
pwm_led.freq(1_000)
while True:
for duty in range(0,65_536):
pwm_led.duty_u16(duty)