Example code for the EM027BS013 ePaper display module.

Dependencies:   EM027BS013 mbed

Revision:
3:c69a4ccd446d
Parent:
2:7713b53ca9bb
--- a/main.cpp	Tue Aug 26 07:25:20 2014 +0000
+++ b/main.cpp	Mon Jan 18 09:07:30 2016 +0000
@@ -96,9 +96,36 @@
  */
 #define LPC1549_ARDUINO   D13,D11,D12,D10,D0,D1,SCL,SDA,D9,D6,D7,D8
 
-EM027BS013 epaper(LPC1549_ARDUINO);
+/*
+ * LPC768_MBED
+ * -----------
+ * Connections for the mbed LPC1768 module. 
+ * The display module should be connected with jumper cables between the
+ * pinlist on the mbed board and the 14-pos connector (J3) on the
+ * display module like this:
+ *
+ *   Mbed      Display
+ *   
+ *   GND        J3-1
+ *   VOUT       J3-2
+ *   p7         J3-3
+ *   p5         J3-4
+ *   p6         J3-5
+ *   p8         J3-6
+ *   p13        J3-7
+ *   p10        J3-8
+ *   p27        J3-9
+ *   p28        J3-10
+ *   p26        J3-11
+ *   p12        J3-12
+ *   p9         J3-13
+ *   p11        J3-14
+ */
+#define LPC1768_MBED   p7,p5,p6,p8,p13,p10,p27,p28,p26,p12,p9,p11
 
 
+EM027BS013 epaper(LPC1768_MBED);
+
 int main() {
     while(1) {
         epaper.drawImage((uint8_t*)&image_array_270_ea);