/ examples / crickit_servo_simpletest.py
crickit_servo_simpletest.py
 1  # Crickit library demo - servos
 2  
 3  import time
 4  from adafruit_crickit import crickit
 5  
 6  # Move servo back and forth 180 degrees.
 7  while True:
 8      crickit.servo_1.angle = 0
 9      time.sleep(1)
10      crickit.servo_1.angle = 180
11      time.sleep(1)