Vlad Cazan
/
Motor
Diff: Motor.h
- Revision:
- 0:552b174f8c2f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Motor.h Sun Jan 17 17:17:06 2010 +0000 @@ -0,0 +1,20 @@ +#ifndef MBED_MOTOR_H +#define MBED_MOTOR_H + +#include "mbed.h" + +class Motor { + + public: + + Motor(PinName pwm, PinName fwd, PinName rev); + void speed (float); + + protected: + PwmOut _pwm; + DigitalOut _fwd; + DigitalOut _rev; + +}; + +#endif