Initial Commit
Diff: motors.h
- Revision:
- 0:5b2bf6e79b07
- Child:
- 1:201d986498c7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/motors.h Thu May 08 19:11:31 2014 +0000 @@ -0,0 +1,23 @@ +#ifndef MOTORS_H +#define MOTORS_H + +#include "mbed.h" +#include "TB6612.h" + +class Motors +{ + private: + + void stop(void const *args); + + public: + + TB6612 * Left; + TB6612 * Right; + DigitalOut enable; + + Motors(TB6612 * L, TB6612 * R, PinName STBY); + + void flip(); +}; +#endif \ No newline at end of file