can't push chnages :(

Fork of FBRDash by Michael Allan

inc/Gears.h

Committer:
tomontoast
Date:
2012-10-14
Revision:
5:177520d43c87
Parent:
1:b3907b8d9f65

File content as of revision 5:177520d43c87:

#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