Code for autonomous ground vehicle, Data Bus, 3rd place winner in 2012 Sparkfun AVC.
Dependencies: Watchdog mbed Schedule SimpleFilter LSM303DLM PinDetect DebounceIn Servo
Diff: UI/Buttons/Buttons.h
- Revision:
- 0:826c6171fc1b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/UI/Buttons/Buttons.h Wed Jun 20 14:57:48 2012 +0000 @@ -0,0 +1,20 @@ +#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 \ No newline at end of file