Control an H-Bridge using a PwmOut (enable) and two DigitalOuts (direction select). (forked from simon/Motor and changed according to our needs)
Fork of Motor by
Motor Class Reference
Interface to control a standard DC motor. More...
#include <Motor.h>
Public Member Functions | |
Motor (PinName en, PinName fwd, PinName rev) | |
Create a motor control interface. | |
void | direct (int dir) |
Set the speed of the motor. |
Detailed Description
Interface to control a standard DC motor.
with an H-bridge using a PwmOut and 2 DigitalOuts
Definition at line 40 of file Motor.h.
Constructor & Destructor Documentation
Motor | ( | PinName | en, |
PinName | fwd, | ||
PinName | rev | ||
) |
Member Function Documentation
Generated on Sun Jul 17 2022 01:14:24 by 1.7.2