EaPaper Library for EM027BS013
Dependencies: EM027BS013 TFT_fonts
Fork of EaEpaper by
Diff: EaEpaper.h
- Revision:
- 4:672976335e80
- Parent:
- 2:1f3672176ca3
--- a/EaEpaper.h Wed Jun 25 17:43:32 2014 +0000 +++ b/EaEpaper.h Thu Apr 02 16:27:46 2015 +0000 @@ -20,7 +20,7 @@ * Includes */ #include "mbed.h" -#include "EPD.h" +#include "EM027BS013.h" #include "GraphicsDisplay.h" // we have to double buffer the display @@ -93,10 +93,18 @@ /** * Constructor. */ - EaEpaper(PinName p_on, PinName border, PinName discharge, PinName reset, PinName busy, PinName cs, // IO-Pins - PinName pwm, // PWM Pin - PinName mosi, PinName miso, PinName sck, // SPI - PinName sda, PinName scl, // I2C + EaEpaper::EaEpaper(PinName sec03_SpiSCK, + PinName sec04_SpiMOSI, + PinName sec05_SpiMISO, + PinName sec06_EpdCS, + PinName sec07_EpdBusy, + PinName sec08_EpdBorder, + PinName sec09_I2cSCL, + PinName sec10_I2cSDA, + PinName sec11_FlashCS, + PinName sec12_EpdReset, + PinName sec13_EpdPanelOn, + PinName sec14_EpdDischarge, // I2C const char* name ="E_Paper"); /** Get the width of the screen in pixel @@ -249,11 +257,9 @@ private: - EPD_Class epd_; - I2C i2c_; + EM027BS013 em_; unsigned int char_x; unsigned int char_y; - int32_t readTemperature(); };