test program for keypad(Extended not only 3x4 but 4x4,4x5 and 5x5 keys)

Dependencies:   Keypad

Fork of study_step0 by Team_PjL

see /users/kenjiArai/notebook/keypadkey-matrix--control/

Committer:
kenjiArai
Date:
Sat Aug 01 07:49:39 2020 +0000
Revision:
4:0564f82dd0ef
Parent:
3:0c888cad9376
Child:
5:53fb9eed6b67
changed pc.printf to printf

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kenjiArai 2:aa6fdecebf2b 1 /*
kenjiArai 2:aa6fdecebf2b 2 * Mbed Application program
kenjiArai 2:aa6fdecebf2b 3 *
kenjiArai 2:aa6fdecebf2b 4 * Copyright (c) 2020 Kenji Arai / JH1PJL
kenjiArai 2:aa6fdecebf2b 5 * http://www7b.biglobe.ne.jp/~kenjia/
kenjiArai 2:aa6fdecebf2b 6 * https://os.mbed.com/users/kenjiArai/
kenjiArai 2:aa6fdecebf2b 7 * Created: April 5th, 2020
kenjiArai 4:0564f82dd0ef 8 * Revised: August 1st, 2020
kenjiArai 2:aa6fdecebf2b 9 */
kenjiArai 2:aa6fdecebf2b 10 /*
kenjiArai 2:aa6fdecebf2b 11 You can select several examples as followings.
kenjiArai 2:aa6fdecebf2b 12 0. key_3x4.cpp
kenjiArai 2:aa6fdecebf2b 13 1. key_4x4.cpp
kenjiArai 2:aa6fdecebf2b 14 2. key_4x5.cpp
kenjiArai 2:aa6fdecebf2b 15 3. key_5x5.cpp
kenjiArai 2:aa6fdecebf2b 16 4. key_complex.cpp
kenjiArai 2:aa6fdecebf2b 17 */
kenjiArai 3:0c888cad9376 18 #define PROG_NUMBER 4 // select 0 to 4
kenjiArai 2:aa6fdecebf2b 19
kenjiArai 2:aa6fdecebf2b 20 //----------------- You don't need any modification ----------------------------
kenjiArai 2:aa6fdecebf2b 21 #if PROG_NUMBER == 0
kenjiArai 2:aa6fdecebf2b 22 # define KEY3X4
kenjiArai 2:aa6fdecebf2b 23 #elif PROG_NUMBER == 1
kenjiArai 2:aa6fdecebf2b 24 # define KEY4X4
kenjiArai 2:aa6fdecebf2b 25 #elif PROG_NUMBER == 2
kenjiArai 2:aa6fdecebf2b 26 # define KEY4X5
kenjiArai 2:aa6fdecebf2b 27 #elif PROG_NUMBER == 3
kenjiArai 2:aa6fdecebf2b 28 # define KEY5X5
kenjiArai 2:aa6fdecebf2b 29 #elif PROG_NUMBER == 4
kenjiArai 2:aa6fdecebf2b 30 # define COMPLEX
kenjiArai 2:aa6fdecebf2b 31 #else
kenjiArai 2:aa6fdecebf2b 32 # error " Please set 0 to 4 number for PROG_NUMBER!!"
kenjiArai 2:aa6fdecebf2b 33 #endif