Dashboard firmware for FBR2012

Dependencies:   mbed TextLCD PinDetect

inc/Gears.h

Committer:
intrinseca
Date:
2013-02-19
Revision:
8:e59084742552
Parent:
1:b3907b8d9f65

File content as of revision 8:e59084742552:

#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