Skip to content

Commit f5600e1

Browse files
authored
Add files via upload
1 parent 9c1a3a7 commit f5600e1

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Crickits/Make_It_Bubble/code.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# SPDX-FileCopyrightText: 2018 Anne Barela for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: MIT
4+
5+
# CircuitPython 3.0 CRICKIT Make It Bubble
6+
import time
7+
from adafruit_crickit import crickit
8+
9+
motor_2 = crickit.dc_motor_2
10+
motor_2.throttle = 1 # full speed forward
11+
12+
while True:
13+
print("servo up")
14+
crickit.servo_1.angle = 30
15+
time.sleep(2)
16+
print("servo down")
17+
crickit.servo_1.angle = 145
18+
time.sleep(0.4)

0 commit comments

Comments
 (0)