AirsoftTimer software based on mbed
Dependencies: mbed TextLCD keypad
board/Keyboard.h
- Committer:
- sillevl
- Date:
- 2014-12-31
- Revision:
- 11:50572814f73e
- Parent:
- 4:2c91c9eccf3a
- Child:
- 18:abcebc4d0da0
File content as of revision 11:50572814f73e:
#ifndef KEYBOARD_H #define KEYBOARD_H #include "mbed.h" #include "Keypad.h" struct KeyboardPins{ PinName rows[4]; PinName cols[3]; }; class Keyboard : public Keypad{ public: Keyboard(KeyboardPins keyboardPins); template<class T> void attach(T* item, uint32_t(T::*method)(uint32_t)){ _callback.attach(item, method); } static const char KEYTABLE[]; private: }; #endif