from machine import Pin,PWM
from time import sleep
led1=PWM(Pin(2),freq=5000,duty=1)
led2=PWM(Pin(0),freq=5000,duty=100)
led3=PWM(Pin(4),freq=5000,duty=500)
led4=PWM(Pin(16),freq=5000,duty=1023)
from machine import Pin,PWM
from time import sleep
led1=PWM(Pin(2),freq=5000,duty=1)
led2=PWM(Pin(0),freq=5000,duty=100)
led3=PWM(Pin(4),freq=5000,duty=500)
led4=PWM(Pin(16),freq=5000,duty=1023)