Final
Motor_Driver.h
- Committer:
- jbeason3
- Date:
- 2019-11-06
- Revision:
- 0:e0bfe92fd649
File content as of revision 0:e0bfe92fd649:
#ifndef Motor_Driver_H #define Motor_Driver_H #include "mbed.h" class BLDR { public: BLDR(PinName in1, PinName in2, PinName pmw); void set_dir(int dir); void set_duty(float dc); private: PwmOut _pwm; DigitalOut _in1; DigitalOut _in2; }; //needed ending text #endif