from pyb import Servo
import time,pyb
s1 = Servo(1) # servo on position 1 (P7)
led = pyb.LED(1)
while(1):
led.on()
s1.angle(45) # move to 45 degrees
time.sleep(600)
led.off()
s1.angle(0) # move to -60 degrees in 1500ms
time.sleep(600)
from pyb import Servo
import time,pyb
s1 = Servo(1) # servo on position 1 (P7)
led = pyb.LED(1)
while(1):
led.on()
s1.angle(45) # move to 45 degrees
time.sleep(600)
led.off()
s1.angle(0) # move to -60 degrees in 1500ms
time.sleep(600)