Kenji Arai / Mbed OS ePD_2R13inch_test_program

Dependencies:   EPD_2R13

Files at this revision

API Documentation at this revision

Comitter:
kenjiArai
Date:
Sat Jun 29 23:54:50 2019 +0000
Parent:
0:c0e0a185358d
Commit message:
combined latest mbed-os5 revision

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
set_RTC.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Apr 30 02:13:16 2019 +0000
+++ b/main.cpp	Sat Jun 29 23:54:50 2019 +0000
@@ -5,7 +5,7 @@
  *  http://www.page.sannet.ne.jp/kenjia/index.html
  *  http://mbed.org/users/kenjiArai/
  *      Created:    April     27th, 2019
- *      Revised:    April     30th, 2019
+ *      Revised:    June      29th, 2019
  *
  *  Tested on Nucleo-F446RE with mbed-os5.12.2
  *
@@ -32,8 +32,9 @@
 #define UNCOLORED   1
 
 //  Constructor ----------------------------------------------------------------
-//            mosi, miso, sclk, cs, dc, rst, busy, pwr
-Epd epd = Epd(  D4,   NC,   D3,D10, D9,  D8,   D7,  NC);
+//  3.3V, GND, DIN,     ,  CLK,  CS, DC, RST, BUSY,   <- 2.13inch e-Paper pin   
+//            mosi, miso, sclk,  cs, dc, rst, busy, pwr
+Epd epd = Epd(  D4,   NC,   D3, D10, D9,  D8,   D7,  NC);
 DigitalOut myled(LED1);
 DigitalIn  sw(USER_BUTTON);
 Serial pc(USBTX, USBRX);
@@ -74,7 +75,7 @@
                        &Font12, COLORED);
     paint.DrawStringAt(0, 16, "Waveshare 2.13 e-Paper WBY",
                        &Font12, COLORED);
-    paint.DrawStringAt(0, 30, "Run on mbed-os5.12",
+    paint.DrawStringAt(0, 30, "Run on mbed-os5.13",
                        &Font16, COLORED);
     paint.DrawStringAt(0, 42, "   tested on Nucleo-F446RE",
                        &Font12, COLORED);
--- a/mbed-os.lib	Tue Apr 30 02:13:16 2019 +0000
+++ b/mbed-os.lib	Sat Jun 29 23:54:50 2019 +0000
@@ -1,1 +1,1 @@
-https://github.com/ARMmbed/mbed-os/#cfa7938a4dd6d1a4c501945b9c26ca68f70e284e
+https://github.com/ARMmbed/mbed-os/#54b94ec68c1161b8d0443a068153e93970eebee7
--- a/set_RTC.cpp	Tue Apr 30 02:13:16 2019 +0000
+++ b/set_RTC.cpp	Sat Jun 29 23:54:50 2019 +0000
@@ -5,7 +5,7 @@
  *  http://www.page.sannet.ne.jp/kenjia/index.html
  *  http://mbed.org/users/kenjiArai/
  *      Created:    April     27th, 2019
- *      Revised:    April     30th, 2019
+ *      Revised:    June      29th, 2019
  */
 
 #include "mbed.h"
@@ -22,7 +22,7 @@
     char linebuf[64];
 
     pc.printf("\r\nSet time into RTC\r\n");
-    pc.printf(" e.g. >19 4 29 10 11 12 -> April 29th,'19, 10:11:12\r\n");
+    pc.printf(" e.g. >19 6 29 10 11 12 -> June 29th,'19, 10:11:12\r\n");
     pc.printf(" If time is fine, just hit enter\r\n");
     pc.putc('>');
     ptr = linebuf;