Skip to content

Instantly share code, notes, and snippets.

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