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

Dependencies:   Watchdog mbed Schedule SimpleFilter LSM303DLM PinDetect DebounceIn Servo

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