Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed TextLCD keypad
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
Generated on Tue Jul 12 2022 21:04:09 by
1.7.2
