Code for RM Edu Car from Crowd Supply. For use with CircuitPython.
Place the robohateducar.py
library file into the libs/
folder on your Robo HAT MM1 CIRCUITPY drive. Then use as per the example.
Place the following code into code.py
on the CIRCUITPY drive. Please edit as required.
import board
import time
from robohateducar import *
car = RoboHatEduCar()
# drive the car forwards 1 metre
car.drive(RoboHatEduCar.CMD_DRV_FORWARD, 1)
# stop the car
car.stop()
Only required when using older CircuitPython boards
git submodule add https://github.com/robotics-masters/EduCar.git frozen/robohateducar
https://robohatmm1-docs.readthedocs.io/en/latest/projects/rmeducar/