Skip to content

Commit 5b635d2

Browse files
authored
Create code.py
name issue with prior commit
1 parent ab52859 commit 5b635d2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Make_It_Bubble/code.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# CircuitPython 3.0 CRICKIT dMake It Bubble
2+
import time
3+
from adafruit_crickit import crickit
4+
5+
motor_2 = crickit.dc_motor_2
6+
motor_2.throttle = 1 # full speed forward
7+
8+
while True:
9+
print("servo up")
10+
crickit.servo_1.angle = 30
11+
time.sleep(2)
12+
print("servo down")
13+
crickit.servo_1.angle = 145
14+
time.sleep(0.4)

0 commit comments

Comments
 (0)