3x4 keypad library (Extended not only 3x4 but 4x4,4x5 and 5x5 keys)
Dependents: Keypad_input_OS2 Keypad_input
see /users/kenjiArai/notebook/keypadkey-matrix--control/
Diff: Keypad.cpp
- Revision:
- 1:ed0ad90ad734
- Parent:
- 0:b7249629f337
- Child:
- 2:a3545b56bdd7
--- a/Keypad.cpp Sat Sep 30 23:17:15 2017 +0000 +++ b/Keypad.cpp Sat Sep 30 23:26:44 2017 +0000 @@ -11,8 +11,8 @@ #include "Keypad.h" -extern Serial pc; -extern DigitalOut my_led; +//extern Serial pc; +//extern DigitalOut my_led; Keypad::Keypad( PinName kx, PinName ky, PinName kz, @@ -109,8 +109,6 @@ return bf_get(); } -#define BF_SIZE 16 - void Keypad::bf_put(char dt) { uint8_t next = write_addr + 1;