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

Auto generated API documentation and code listings for Motor


Motor Interface to control a standard DC motor with an H-bridge using a PwmOut and 2 DigitalOuts


Motor.cpp [code]
Motor.h [code]