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/

Revision:
3:0c888cad9376
Parent:
2:aa6fdecebf2b
Child:
4:0564f82dd0ef
--- a/key_3x4.cpp	Mon Apr 06 04:57:04 2020 +0000
+++ b/key_3x4.cpp	Mon Apr 13 02:07:09 2020 +0000
@@ -8,7 +8,7 @@
  *  http://www7b.biglobe.ne.jp/~kenjia/
  *  https://os.mbed.com/users/kenjiArai/
  *      Created:    September 27th, 2017
- *      Revised:    April      6th, 2020
+ *      Revised:    April     13th, 2020
  */
 
 //  Pre-selection --------------------------------------------------------------
@@ -25,10 +25,8 @@
 //  Object ---------------------------------------------------------------------
 DigitalOut  my_led(LED1);
 Serial      pc(USBTX,USBRX);
-//              X    Y   Z   A   B   C   D   OUT(XYZ), IN(ABCD)
-Keypad      key(D10, D9, D8, D7, D6, D5, D4);
-//              X    Y   Z   A   B   C   D   OUT(XYZ), IN(ABCD)
-//Keypad      key(D10, D9, D8, D6, D5, D4, D3);
+//              X    Y    Z   A   B   C   D   OUT(XYZ), IN(ABCD)
+Keypad      key(D11, D10, D9, D6, D5, D4, D3);
 
 //  RAM ------------------------------------------------------------------------
 
@@ -50,7 +48,7 @@
     uint32_t key_num;
     uint32_t counter = 0;
 
-    pc.printf("Start Key-Pad test\r\n");
+    pc.printf("Start Key-Pad test 3x4 keys\r\n");
     while(true) {
         while ((key_num = key.read()) != 0) {
             pc.printf("%2u:[%2d] %c\r\n",