can't push chnages :(

Fork of FBRDash by Michael Allan

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Gears.h Source File

Gears.h

00001 #ifndef FBDDASH_GEARS_H
00002 #define FBRDASH_GEARS_H
00003 
00004 #include "mbed.h"
00005 #include "PinDetect.h"
00006 #include "Comms.h"
00007 
00008 class Gears
00009 {
00010     public:
00011         Gears(PinName up, PinName neutral, PinName down, unsigned char* _currentGear, Comms* _remote);
00012     
00013     private:
00014         PinDetect* btnUp;
00015         PinDetect* btnNeutral;
00016         PinDetect* btnDown;
00017         
00018         unsigned char* currentGear;
00019         
00020         Comms* remote;
00021         
00022         void up();
00023         void down();
00024         void neutral();
00025 };
00026 
00027 #endif