Thomas Milburn
/
FBRDash-tom
can't push chnages :(
Fork of FBRDash by
Diff: inc/Gears.h
- Revision:
- 1:b3907b8d9f65
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/inc/Gears.h Mon Jun 25 21:01:02 2012 +0000 @@ -0,0 +1,27 @@ +#ifndef FBDDASH_GEARS_H +#define FBRDASH_GEARS_H + +#include "mbed.h" +#include "PinDetect.h" +#include "Comms.h" + +class Gears +{ + public: + Gears(PinName up, PinName neutral, PinName down, unsigned char* _currentGear, Comms* _remote); + + private: + PinDetect* btnUp; + PinDetect* btnNeutral; + PinDetect* btnDown; + + unsigned char* currentGear; + + Comms* remote; + + void up(); + void down(); + void neutral(); +}; + +#endif \ No newline at end of file