Krishna Kaushal Panduru
/
myDCMotor
software to control a DC motor, preferably interfacing with a motor driver.
DCMotor.h
- Committer:
- kaushalpkk
- Date:
- 2011-07-14
- Revision:
- 0:86a53a224bcf
File content as of revision 0:86a53a224bcf:
#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