crickit_dc_motor_simpletest.py
1 # Crickit library demo - DC motor 2 3 import time 4 from adafruit_crickit import crickit 5 6 # Run motor on Motor 1 terminals forward at full speed and then backward at half speed. 7 while True: 8 crickit.dc_motor_1.throttle = 1.0 9 time.sleep(1) 10 crickit.dc_motor_1.throttle = -0.5 11 time.sleep(1)