Controller chip is ST7565

Dependencies:   ST7565_SPI_LCD

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers check_revision.cpp Source File

check_revision.cpp

00001 /*
00002  * Check Mbed revision
00003  *
00004  * Copyright (c) 2019,'20,'21 Kenji Arai / JH1PJL
00005  *  http://www7b.biglobe.ne.jp/~kenjia/
00006  *  https://os.mbed.com/users/kenjiArai/
00007  *      Created:    July      17th, 2019
00008  *      Revised:    February  27th, 2021
00009  */
00010 
00011 #include "mbed.h"
00012 
00013 //    RUN ONLY ON mbed-os-6.8.0
00014 //      https://github.com/ARMmbed/mbed-os/releases/tag/mbed-os-6.8.0
00015 #if (MBED_MAJOR_VERSION == 6) &&\
00016     (MBED_MINOR_VERSION == 8) &&\
00017     (MBED_PATCH_VERSION == 0)
00018 #else
00019 #   error "Please use mbed-os-6.8.0"
00020 #endif
00021 
00022 void print_revision(void)
00023 {
00024     printf("MBED_MAJOR_VERSION = %d, ", MBED_MAJOR_VERSION);
00025     printf("MINOR = %d, ", MBED_MINOR_VERSION);
00026     printf("PATCH = %d\r\n", MBED_PATCH_VERSION);
00027 }