Skip to content

Instantly share code, notes, and snippets.

@mrpjevans
Created June 27, 2022 14:59
Show Gist options
  • Save mrpjevans/2422feb183f472f3715b7bdd9b512fe9 to your computer and use it in GitHub Desktop.
Save mrpjevans/2422feb183f472f3715b7bdd9b512fe9 to your computer and use it in GitHub Desktop.
test_motors.py
# 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