Chris Styles
/
mbedsumovore_logo
Diff: Motor.h
- Revision:
- 0:01a8e9b87e2f
diff -r 000000000000 -r 01a8e9b87e2f Motor.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Motor.h Sun Sep 20 23:27:39 2009 +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