Keypad program runs on OS2. Extended not only 3x4 but 4x4,4x5 and 5x5 keys.
see /users/kenjiArai/notebook/keypadkey-matrix--control/
select_example.h
- Committer:
- kenjiArai
- Date:
- 2020-04-13
- Revision:
- 3:8a7b6370956f
- Parent:
- 2:d0ae519c229c
File content as of revision 3:8a7b6370956f:
/* * Mbed Application program * * Copyright (c) 2020 Kenji Arai / JH1PJL * http://www7b.biglobe.ne.jp/~kenjia/ * https://os.mbed.com/users/kenjiArai/ * Created: April 5th, 2020 * Revised: April 13th, 2020 */ /* You can select several examples as followings. 0. key_3x4.cpp 1. key_4x4.cpp 2. key_4x5.cpp 3. key_5x5.cpp 4. key_complex.cpp */ #define PROG_NUMBER 0 // select 0 to 4 //----------------- You don't need any modification ---------------------------- #if PROG_NUMBER == 0 # define KEY3X4 #elif PROG_NUMBER == 1 # define KEY4X4 #elif PROG_NUMBER == 2 # define KEY4X5 #elif PROG_NUMBER == 3 # define KEY5X5 #elif PROG_NUMBER == 4 # define COMPLEX #else # error " Please set 0 to 4 number for PROG_NUMBER!!" #endif