We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c1a3a7 commit f5600e1Copy full SHA for f5600e1
Crickits/Make_It_Bubble/code.py
@@ -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