Krishna Kaushal Panduru
/
myDCMotor
software to control a DC motor, preferably interfacing with a motor driver.
Diff: DCMotor.h
- Revision:
- 0:86a53a224bcf
diff -r 000000000000 -r 86a53a224bcf DCMotor.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DCMotor.h Thu Jul 14 23:46:07 2011 +0000 @@ -0,0 +1,18 @@ +#ifndef MBED_DCMOTOR_H +#define MBED_DCMOTOR_H + +#include "mbed.h" + +class DCMotor { + +public: + DCMotor(PinName PWMPin, PinName PinA, PinName PinB); + void driveIt(float); + +protected: + PwmOut _PWMPin; + DigitalOut _PinA; + DigitalOut _PinB; +}; + +#endif \ No newline at end of file