Skip to content

Instantly share code, notes, and snippets.

@mrpjevans
Created June 27, 2022 14:59
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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