Code for autonomous rover for Sparkfun AVC. DataBus won 3rd in 2012 and the same code was used on Troubled Child, a 1986 Jeep Grand Wagoneer to win 1st in 2014.

Dependencies:   mbed Watchdog SDFileSystem DigoleSerialDisp

Committer:
shimniok
Date:
Mon May 27 13:26:03 2013 +0000
Revision:
0:a6a169de725f
Working version with priorities set and update time display

Who changed what in which revision?

UserRevisionLine numberNew contents of line
shimniok 0:a6a169de725f 1 #ifndef __BUTTONS_H
shimniok 0:a6a169de725f 2 #define __BUTTONS_H
shimniok 0:a6a169de725f 3
shimniok 0:a6a169de725f 4 #define NEXT_BUTTON 1
shimniok 0:a6a169de725f 5 #define PREV_BUTTON 2
shimniok 0:a6a169de725f 6 #define SELECT_BUTTON 3
shimniok 0:a6a169de725f 7
shimniok 0:a6a169de725f 8 class Buttons {
shimniok 0:a6a169de725f 9 public:
shimniok 0:a6a169de725f 10 Buttons();
shimniok 0:a6a169de725f 11 void init(void);
shimniok 0:a6a169de725f 12 void nextPressed(void);
shimniok 0:a6a169de725f 13 void prevPressed(void);
shimniok 0:a6a169de725f 14 void selectPressed(void);
shimniok 0:a6a169de725f 15
shimniok 0:a6a169de725f 16 int which;
shimniok 0:a6a169de725f 17 bool pressed;
shimniok 0:a6a169de725f 18 };
shimniok 0:a6a169de725f 19
shimniok 0:a6a169de725f 20 #endif