Come from standard seeed epaper, but adding SPI signal in construtor

Fork of seeedstudio-epaper by Nordic Pucks

Revision:
2:c5bb7d34974d
Parent:
1:2f62e2b80305
--- a/EPD.h	Fri Jul 18 09:20:24 2014 +0000
+++ b/EPD.h	Fri Nov 13 20:46:53 2015 +0000
@@ -47,7 +47,7 @@
     PwmOut EPD_Pin_PWM;
     DigitalOut EPD_Pin_RESET;
     DigitalIn EPD_Pin_BUSY;
-    
+    SPI spi;
     EPD_size size;
     uint16_t stage_time;
 
@@ -62,11 +62,17 @@
 
     bool filler;
 
+    void SPI_put(uint8_t c);
+    void SPI_put_wait(uint8_t c, DigitalIn busy_pin);
+    void SPI_send(DigitalOut cs_pin, const uint8_t *buffer, uint16_t length);
+    void SPI_on();
+
     public:
     unsigned char lineDta[33];
 
     public:
     EPD_Class(PinName Pin_EPD_CS, PinName Pin_PANEL_ON, PinName Pin_BORDER, PinName Pin_DISCHARGE, PinName Pin_PWM, PinName Pin_RESET, PinName Pin_BUSY);
+    EPD_Class(PinName Pin_EPD_CS, PinName Pin_PANEL_ON, PinName Pin_BORDER, PinName Pin_DISCHARGE, PinName Pin_PWM, PinName Pin_RESET, PinName Pin_BUSY,PinName Pin_MOSI,PinName Pin_MISO,PinName Pin_CLK);
     // power up and power down the EPD panel
     void begin(EPD_size sz);
     void start();