from machine import Pin,PWM from time import sleep led = PWM(Pin(25,Pin.OUT)) led.duty(5) sleep(3) led.duty(100)