Adafruit_Learning_System_Gu.../CircuitPython_CLUEbot/code.py
Melissa LeBlanc-Williams b57a905f1b Added SPDX headers
2022-09-23 14:41:15 -07:00

20 lines
515 B
Python
Executable file

# SPDX-FileCopyrightText: 2022 Melissa LeBlanc-Williams for Adafruit Industries
#
# SPDX-License-Identifier: MIT
import board
import neopixel
from robot import Robot
# Ring:bit Pins
UNDERLIGHT_PIXELS = board.D0
LEFT_MOTOR = board.D1
RIGHT_MOTOR = board.D2
# Set up the hardware
underlight_neopixels = neopixel.NeoPixel(UNDERLIGHT_PIXELS, 2)
robot = Robot(LEFT_MOTOR, RIGHT_MOTOR, underlight_neopixels)
while True:
robot.wait_for_connection()
while robot.is_connected():
robot.check_for_packets()