demo demo
/
BluetoothSumo
Motor.h
- Committer:
- demo
- Date:
- 2009-09-19
- Revision:
- 0:41f85a3f645d
File content as of revision 0:41f85a3f645d:
// H-Bridge Motor Control // Copyright (c) 2009 sford // Released under the MIT License: http://mbed.org/license/mit #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