from machine import Pin, PWM
from time import sleep_ms
pwm0 = PWM(Pin(21))
pwm0.freq(100)
pwm0.duty(512)
while True:
sleep_ms(1000)
from machine import Pin, PWM
from time import sleep_ms
pwm0 = PWM(Pin(21))
pwm0.freq(100)
pwm0.duty(512)
while True:
sleep_ms(1000)