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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Buttons.h Source File

Buttons.h

00001 #ifndef __BUTTONS_H
00002 #define __BUTTONS_H
00003 
00004 #define NEXT_BUTTON   1
00005 #define PREV_BUTTON   2
00006 #define SELECT_BUTTON 3
00007 
00008 class Buttons {
00009 public:
00010     Buttons();
00011     void init(void);
00012     void nextPressed(void);
00013     void prevPressed(void);
00014     void selectPressed(void);
00015     
00016     int which;
00017     bool pressed;
00018 };
00019 
00020 #endif