from machine import Pin,PWM
LED_BUITLTIN=1
pwm_led=PWM(Pin(LED_BUITLTIN,mode=Pin.OUT))
pwm_led.freq(1_000)
duty_cycle=50
pwm_led.duty_u16(int((duty_cycle/100)*65535))
from machine import Pin,PWM
LED_BUITLTIN=1
pwm_led=PWM(Pin(LED_BUITLTIN,mode=Pin.OUT))
pwm_led.freq(1_000)
duty_cycle=50
pwm_led.duty_u16(int((duty_cycle/100)*65535))