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
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
Generated on Tue Jul 12 2022 21:36:18 by 1.7.2