Library for the CustomExplorerRobot.
Dependents: CustomExplorerRobot_test
BD6212/BD6212.h
- Committer:
- Usuke
- Date:
- 2016-02-27
- Revision:
- 0:ad4667fc5a76
File content as of revision 0:ad4667fc5a76:
#ifndef MBED_BD6212_H #define MBED_BD6212_H #include "mbed.h" /** BD6212 control with direct PWM class */ class BD6212{ public: BD6212(PinName fwd, PinName rev); void speed(float speed); void coast(void); void operator= ( float value ) { speed(value); } protected: PwmOut _fwd; PwmOut _rev; float bspeed; }; #endif