software to control a DC motor, preferably interfacing with a motor driver.
Diff: DCMotor.h
- Revision:
- 0:c92be90656b7
- Child:
- 1:88772267f757
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DCMotor.h Fri Jul 15 10:44:21 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