Code for autonomous ground vehicle, Data Bus, 3rd place winner in 2012 Sparkfun AVC.

Dependencies:   Watchdog mbed Schedule SimpleFilter LSM303DLM PinDetect DebounceIn Servo

UI/Buttons/Buttons.h

Committer:
shimniok
Date:
2012-06-20
Revision:
0:826c6171fc1b

File content as of revision 0:826c6171fc1b:

#ifndef __BUTTONS_H
#define __BUTTONS_H

#define NEXT_BUTTON   1
#define PREV_BUTTON   2
#define SELECT_BUTTON 3

class Buttons {
public:
    Buttons();
    void init(void);
    void nextPressed(void);
    void prevPressed(void);
    void selectPressed(void);
    
    int which;
    bool pressed;
};

#endif