Example with the 2.7" epaper display EM027BS013

Dependencies:   EM027BS013 mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "EM027BS013.h"
00003 #include "image_data.h"
00004 
00005 /*
00006  * Example taken from http://mbed.org/users/embeddedartists/code/app_epaper_EM027BS013/
00007  *  
00008  * The following macros makes it easier to specify all the 12 arguments to the
00009  * EM027BS013 constructor:
00010  */
00011  
00012 /*
00013  * LPC4088EBB_SEC
00014  * --------------
00015  * Embedded Artists' LPC4088 QuickStart Board + LPC4088 Experiment Base Board. 
00016  * The display module should be connected using the 14-pos serial expansion
00017  * connector on the base board.
00018  */
00019 #define LPC4088EBB_SEC   p13,p11,p12,p14,p10,p9,p20,p19,p37,p38,p17,p18
00020 
00021 
00022 EM027BS013 epaper(LPC4088EBB_SEC);
00023 
00024 /*
00025  Hardware Setup:
00026  
00027  - Jumpers JP1..JP6 should be in position 1-2
00028  - Jumpers in J14 should NOT be inserted
00029  - Jumper J7 should be inserted
00030  - Display in connector J5. 
00031 */
00032 
00033 int main() {
00034     while(1) {
00035         epaper.drawImage((uint8_t*)&image_array_270_ea);
00036         wait(5);
00037         epaper.drawImage((uint8_t*)&image_array_270_text);
00038         wait(5);
00039         epaper.drawImage((uint8_t*)&image_array_270_1);
00040         wait(5);
00041         epaper.drawImage((uint8_t*)&image_array_270_2);
00042         wait(5);
00043     }
00044 }