Rauno U
/
Miisu
Six crescent shaped legs
Motor.hpp
- Committer:
- sim642
- Date:
- 2016-06-21
- Revision:
- 47:4f418a4b0051
- Parent:
- 10:e9c106a8b0d0
File content as of revision 47:4f418a4b0051:
#ifndef MOTOR_H #define MOTOR_H #include "mbed.h" struct MotorData { PinName pwmPin, dir1Pin, dir2Pin; }; class Motor { public: Motor(MotorData nData); virtual void drive(float power); protected: MotorData data; private: PwmOut pwm; DigitalOut dir1, dir2; }; #endif // MOTOR_H