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/

check_revision.cpp

Committer:
kenjiArai
Date:
2020-08-01
Revision:
4:0564f82dd0ef
Parent:
2:aa6fdecebf2b
Child:
5:53fb9eed6b67

File content as of revision 4:0564f82dd0ef:

/*
 * Check Mbed revision
 *
 * Copyright (c) 2020 Kenji Arai / JH1PJL
 *  http://www7b.biglobe.ne.jp/~kenjia/
 *  https://os.mbed.com/users/kenjiArai/
 *      Revised:    Feburary  16th, 2020
 *      Revised:    August     1st, 2020
 */

#include "mbed.h"
 
//    RUN ONLY ON mbed-os-6.2.0
//      https://github.com/ARMmbed/mbed-os/releases/tag/mbed-os-6.2.0
#if (MBED_MAJOR_VERSION == 6) &&\
    (MBED_MINOR_VERSION == 2) &&\
    (MBED_PATCH_VERSION == 0)
#elif (MBED_MAJOR_VERSION == 2) &&\
      (MBED_MINOR_VERSION == 0) &&\
      (MBED_PATCH_VERSION == 165)
#else
//#     error "Please use mbed-os-6.2.0-alpha-3 or mbed2-165"
#endif

void print_revision(void)
{
    printf("MBED_MAJOR_VERSION = %d, ", MBED_MAJOR_VERSION);
    printf("MINOR = %d, ", MBED_MINOR_VERSION);
    printf("PATCH = %d\r\n", MBED_PATCH_VERSION);
}