import time from pyb import Servo s1=Servo(1) s2=Servo(2) s1.calibration(500,2500,500) s2.calibration(500,2500,500) while True: s1.angle(0) s2.angle(0) time.sleep(1) s1.angle(90) s2.angle(90) time.sleep(1)