EaPaper Library for EM027BS013

Dependencies:   EM027BS013 TFT_fonts

Fork of EaEpaper by Peter Drescher

Files at this revision

API Documentation at this revision

Comitter:
dreschpe
Date:
Wed Jun 25 17:43:32 2014 +0000
Parent:
2:1f3672176ca3
Child:
4:672976335e80
Commit message:
remove the use of the BurstSPI driver to make the lib compatible with all platforms. There is no time difference, because the display itself need so much time.

Changed in this revision

EPD.cpp Show annotated file Show diff for this revision Revisions of this file
EPD.h Show annotated file Show diff for this revision Revisions of this file
--- a/EPD.cpp	Sun Nov 10 19:32:53 2013 +0000
+++ b/EPD.cpp	Wed Jun 25 17:43:32 2014 +0000
@@ -18,8 +18,6 @@
 
 #include "EPD.h"
 #include "mbed.h"
-#include "BurstSPI.h"
-
 
 // delays - more consistent naming
 #define Delay_ms(ms) wait_ms(ms)
@@ -594,8 +592,7 @@
 
     // send all data
     for (uint16_t i = 0; i < length; ++i) {
-        spi_.fastWrite(*buffer++);
-        spi_.clearRX();
+        spi_.write(*buffer++);
     }
 
     // CS high
--- a/EPD.h	Sun Nov 10 19:32:53 2013 +0000
+++ b/EPD.h	Wed Jun 25 17:43:32 2014 +0000
@@ -16,7 +16,6 @@
 #define EPD_H
 
 #include "mbed.h"
-#include "BurstSPI.h"
 
 #define PROGMEM
 
@@ -45,7 +44,7 @@
     DigitalOut EPD_Pin_RESET;
     DigitalIn EPD_Pin_BUSY;
     DigitalOut EPD_Pin_EPD_CS;
-    BurstSPI spi_;    
+    SPI spi_;    
 
     EPD_size size;
     uint16_t stage_time;