Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 769 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 769 Bytes

EduCar

Code for RM Edu Car from Crowd Supply. For use with CircuitPython.

Usage

Place the robohateducar.py library file into the libs/ folder on your Robo HAT MM1 CIRCUITPY drive. Then use as per the example.

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()

Freeze Module

Only required when using older CircuitPython boards

git submodule add https://github.com/robotics-masters/EduCar.git frozen/robohateducar

Docs

https://robohatmm1-docs.readthedocs.io/en/latest/projects/rmeducar/