AirsoftTimer software based on mbed

Dependencies:   mbed TextLCD keypad

Revision:
16:e8e96bf22df1
Parent:
5:be598835bab0
Child:
17:19dbb1dbb640
--- a/board/Board.h	Sat May 23 17:55:38 2015 +0000
+++ b/board/Board.h	Sat May 23 18:36:54 2015 +0000
@@ -8,6 +8,8 @@
 #include "Button.h"
 #include "Keyboard.h"
 
+#include <vector>
+
 // class for debug leds
 // class for eeprom memory
 // class for wireless (nordic chip or xbee)
@@ -21,6 +23,14 @@
     LcdPins lcd;
 };
 
+class ButtonListener
+{
+  public:
+    virtual void buttonEvent(char c){
+        
+    };
+};
+
 class Board{
     public:
     Board(Pinouts pinouts);
@@ -32,6 +42,14 @@
     Keyboard* keyboard;
     Buzzer* buzzer;
     
+    vector < ButtonListener * > listeners;
+    
+    void attach(ButtonListener *bl);
+    
+    protected:
+    void buttonEvent(char c);
+
+    
 };
 
 #endif
\ No newline at end of file