from machine import Pin, PWM
from utime import sleep, sleep_ms
servo = PWM(Pin(21),freq = 50)
led = Pin(21, Pin.OUT)
while True:
for i in range(1800,8000):
servo.duty_u16(i)
led.value(1)
print (i)
sleep_ms(1)
from machine import Pin, PWM
from utime import sleep, sleep_ms
servo = PWM(Pin(21),freq = 50)
led = Pin(21, Pin.OUT)
while True:
for i in range(1800,8000):
servo.duty_u16(i)
led.value(1)
print (i)
sleep_ms(1)