Driver to control the EM027BS013 board from Embedded Artists

Dependencies:   EM027BS013

EM027BS013 Simple Driver

This library provides an easy way to write data to the EM027BS013 display, by providing interfaces to common C functions and methods. The library was originally written by Peter Drescher, who created the "EaEpaper" library for the EM027AS012 display (available here, but adapted to use the newer display type and driver (available here), as the existing display is now discontinued.

Big thanks go to the team from Pervasive Displays and Electronic Artists for producing such a nice display, and to Peter for providing the initial interface used in this driver.

Revision:
1:46dfef41919b
Parent:
0:e36f1973a674
--- a/EaEpaper.h	Mon May 09 12:29:02 2016 +0000
+++ b/EaEpaper.h	Thu May 19 14:08:34 2016 +0000
@@ -47,10 +47,26 @@
 #define Black           0x0
 #define White           0x1   
 
-
+/**
+* Main driver class to drive the EA027BS023 E-Paper display.
+*/
 class EaEpaper : public GraphicsDisplay
 {
     public:
+        /** EaEpaper constructor.
+         * @param sec03_SpiSCK the SPI SCK pin
+         * @param sec04_SpiMOSI the SPI MOSI pin
+         * @param sec05_SpiMISO the SPI MISO pin
+         * @param sec06_EpdCS the SPI chip select pin connected to the display
+         * @param sec07_EpdBusy the pin connected to the busy pin on the display
+         * @param sec08_EpdBorder the pin connected to the border pin on the display
+         * @param sec09_I2cSCL the I2C SCL pin
+         * @param sec10_I2cSDA the I2C SDA pin
+         * @param sec11_FlashCS the Flash Chip Select pin connected to the display
+         * @param sec12_EpdReset the reset pin connected to the display
+         * @param sec13_EpdPanelOn the power pin connected to the display
+         * @param sec14_EpdDischarge the discharge pin connected to the display
+         */
         EaEpaper(PinName sec03_SpiSCK,
                PinName sec04_SpiMOSI,
                PinName sec05_SpiMISO,
@@ -65,7 +81,7 @@
                PinName sec14_EpdDischarge,
                const char* name = "EPD");
                
-        /** Get the width of the screen in pixel
+    /** Get the width of the screen in pixel
       *
       * @param
       * @returns width of screen in pixel
@@ -209,6 +225,9 @@
       */
     void print_bm(Bitmap bm, int x, int y);
     
+    /** write raw characters to the display
+     * @param img array of raw image data
+     */
     void drawImage(uint8_t* img);
     
     unsigned char* font;