AirsoftTimer software based on mbed

Dependencies:   mbed TextLCD keypad

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Keyboard.h Source File

Keyboard.h

00001 #ifndef KEYBOARD_H
00002 #define KEYBOARD_H
00003 
00004 #include "mbed.h"
00005 #include "Keypad.h"
00006 
00007 struct KeyboardPins{
00008     PinName rows[4];
00009     PinName cols[3];
00010 };
00011 
00012 
00013 
00014 class Keyboard : public Keypad{
00015     public:
00016     Keyboard(KeyboardPins keyboardPins); 
00017       
00018     template<class T> 
00019     void attach(T* item, uint32_t(T::*method)(uint32_t)){
00020         _callback.attach(item, method);
00021     }
00022     
00023     static const char KEYTABLE[];
00024     
00025     private: 
00026     
00027 };
00028 
00029 #endif