/ Make_It_Bubble / code.py
code.py
1 # SPDX-FileCopyrightText: 2018 Anne Barela for Adafruit Industries 2 # 3 # SPDX-License-Identifier: MIT 4 5 # CircuitPython 3.0 CRICKIT dMake 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)