EPD display library. Check this version (it should work)

Fork of GDEP015OC1 by Jurica Resetar

Revision:
8:5ae728fa8820
Parent:
7:70c58d3cbc8b
Child:
9:e4e77e840b1f
--- a/GDEP015OC1.cpp	Mon Sep 26 10:08:14 2016 +0000
+++ b/GDEP015OC1.cpp	Wed Feb 22 07:52:45 2017 +0000
@@ -5,6 +5,8 @@
 #include "GDEP015OC1.h"
 #include "5x7.h"
 
+#define EPD_WAIT_CONSTANT 100
+
 static const unsigned char _lutFull[] = { 
     0x02, 0x02, 0x01, 0x11, 0x12, 0x12, 0x22, 0x22, 0x66, 0x69, 0x69, 0x59, 0x58, 0x99, 0x99, 
     0x88, 0x00, 0x00, 0x00, 0x00, 0xF8, 0xB4, 0x13, 0x51, 0x35, 0x51, 0x51, 0x19, 0x01, 0x00
@@ -43,9 +45,9 @@
 
 void GDEP015OC1::_wakeUp(bool partial){
     _rst = 0;
-    wait_ms(10);
+    wait_ms(EPD_WAIT_CONSTANT);
     _rst = 1;
-    wait_ms(10);
+    wait_ms(EPD_WAIT_CONSTANT);
     
     //Stage 3
     //Driver Output control
@@ -183,7 +185,7 @@
     for(int16_t x=0; x>=0 && x<200; x++){
         for(int16_t y=24; y>=0 && y<25; y--){
             _spiData(_mirrorData(_pixelConv(_buffer, x*25+y)));
-            wait_us(10);
+            wait_us(EPD_WAIT_CONSTANT);
         }
     }
 
@@ -207,7 +209,7 @@
     for(int16_t x=0; x>=0 && x<200; x++){
         for(int16_t y=24; y>=0 && y<25; y--){
             _spiData(_mirrorData(_pixelConv(_buffer, x*25+y)));
-            wait_us(10);
+            wait_us(EPD_WAIT_CONSTANT);
         }
     }