Example code for the EM027BS013 ePaper display module.

Dependencies:   EM027BS013 mbed

Files at this revision

API Documentation at this revision

Comitter:
embeddedartists
Date:
Mon Jan 18 09:07:30 2016 +0000
Parent:
2:7713b53ca9bb
Commit message:
Added support for mbed LPC1768

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 7713b53ca9bb -r c69a4ccd446d main.cpp
--- 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);
diff -r 7713b53ca9bb -r c69a4ccd446d mbed.bld
--- a/mbed.bld	Tue Aug 26 07:25:20 2014 +0000
+++ b/mbed.bld	Mon Jan 18 09:07:30 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/9327015d4013
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/6f327212ef96
\ No newline at end of file