Control a DC motor via a standard H-bridge using a PwmOut pin to control speed and two DigitalOut pins to control direction. Can change pwm period on the PwmOut pin, and also brake high or low.

Dependents:   SimpleRover PIDRover IMURover incrementalencoder-pid-robot ... more

Download repository: zip gz

Files at revision 1:c75b234558af

Name Size Actions
[up]
Motor.cpp 1781 Revisions Annotate
Motor.h 2474 Revisions Annotate