E_paper, E_ink, Screen size 1.54", resolution 200x200, 4 wire spi, Waveshare, Black and White, Kl25Z, 8 wire print connector, supply 3.3 Volt, IL0373 Controller, font size is 8, 12, 16 and 24.

Dependencies:   mbed

Revision:
8:01db118d1694
Parent:
7:25cadf37fd86
Child:
9:9503e1ff98ea
--- a/main.cpp	Wed Mar 28 10:17:33 2018 +0000
+++ b/main.cpp	Thu Mar 29 18:27:28 2018 +0000
@@ -35,12 +35,12 @@
 
 Serial pc(USBTX, USBRX, 115200);
 
-DigitalOut reset_pin(PTC17);
+DigitalOut reset_pin(PTA17);
 DigitalOut dc_pin(PTD5);
 DigitalOut cs_pin(PTD0);
-DigitalIn busy_pin(PTA13);
+DigitalIn busy_pin(PTA13, PullNone);
 SPI epaper(PTD2,PTD3,PTD1);  //MOSI, MISO, CLK
-DigitalOut myled(LED1);
+DigitalOut myled(LED2);
 
 
 /**
@@ -59,7 +59,7 @@
 {
     // put your setup code here, to run once:
     if (epd.Init(lut_full_update) != 0) {
-        pc.printf("e-Paper init failed");
+       pc.printf("e-Paper init failed !!!");
         return;
     }
 
@@ -86,7 +86,7 @@
 
     /* For simplicity, the arguments are explicit numerical coordinates */
 
-    pc.printf("ColoRed\n\r");
+    pc.printf("Colored\n\r");
     paint.Clear(COLORED);
     paint.DrawStringAt(30, 4, "Hello world!", &Font16, UNCOLORED);
     epd.SetFrameMemory(paint.GetImage(), 0, 10, paint.GetWidth(), paint.GetHeight());
@@ -168,7 +168,7 @@
 
 int main()
 {
-    pc.printf("Waveshare 1.54 inch e-Paper start\n\r");
+    pc.printf("\n\r\n\r\n\rWaveshare 1.54 inch e-Paper start\n\r");
     setup();
     pc.printf("Loop\n\r");
     loop();