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:
7:25cadf37fd86
Parent:
6:469fb6b0d26d
Child:
8:01db118d1694
--- a/epdif.cpp	Wed Mar 28 09:21:33 2018 +0000
+++ b/epdif.cpp	Wed Mar 28 10:17:33 2018 +0000
@@ -33,6 +33,7 @@
 extern DigitalOut cs_pin;
 extern DigitalIn busy_pin;
 extern SPI epaper;
+extern DigitalOut myled;
 
 EpdIf::EpdIf()
 {
@@ -86,7 +87,8 @@
     //pinMode(RST_PIN, OUTPUT);
     //pinMode(DC_PIN, OUTPUT);
     //pinMode(BUSY_PIN, INPUT);
-    epaper.frequency(2000000);
+    epaper.frequency(1000000);
+    //epaper.format(8,0);
     //SPI.beginTransaction(SPISettings(2000000, MSBFIRST, SPI_MODE0));
     //SPI.begin();
     return 0;