Adafruit_Learning_System_Gu.../Make_It_Bubble/code.py
2022-02-23 12:42:42 -05:00

18 lines
427 B
Python

# SPDX-FileCopyrightText: 2018 Anne Barela for Adafruit Industries
#
# SPDX-License-Identifier: MIT
# 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)