Create code.py

name issue with prior commit
This commit is contained in:
Mike Barela 2018-08-20 14:08:45 -04:00 committed by GitHub
parent ab5285975f
commit 5b635d2e1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

14
Make_It_Bubble/code.py Normal file
View file

@ -0,0 +1,14 @@
# CircuitPython 3.0 CRICKIT dMake It Bubble
import time
from adafruit_crickit import crickit
motor_2 = crickit.dc_motor_2
motor_2.throttle = 1 # full speed forward
while True:
print("servo up")
crickit.servo_1.angle = 30
time.sleep(2)
print("servo down")
crickit.servo_1.angle = 145
time.sleep(0.4)