Create code.py
name issue with prior commit
This commit is contained in:
parent
ab5285975f
commit
5b635d2e1a
1 changed files with 14 additions and 0 deletions
14
Make_It_Bubble/code.py
Normal file
14
Make_It_Bubble/code.py
Normal 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)
|
||||
Loading…
Reference in a new issue