test_motors.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CamJam EduKit 3 - Robotics | |
# Motor Test Code | |
import time # Import the Time library | |
from gpiozero import CamJamKitRobot # Import the CamJam GPIO Zero Library | |
robot = CamJamKitRobot() | |
# Turn the motors on | |
robot.forward() | |
# Wait for 1 seconds | |
time.sleep(1) | |
# Turn the motors off | |
robot.stop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment