An example that shows how to use the Embedded Artists E-paper display. This example is using the EaEpaper library originally developed by Peter Drescher
Dependencies: EaEpaper TFT_fonts mbed
The 2.7 inch E-paper display module connected to the LPC4088 QSB Base Board.
Revision 0:7ae28af60a9a, committed 2013-12-04
- Comitter:
- embeddedartists
- Date:
- Wed Dec 04 12:55:39 2013 +0000
- Commit message:
- First commit
Changed in this revision
diff -r 000000000000 -r 7ae28af60a9a EaEpaper.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/EaEpaper.lib Wed Dec 04 12:55:39 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/embeddedartists/code/EaEpaper/#6fb3e296a6fd
diff -r 000000000000 -r 7ae28af60a9a TFT_fonts.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TFT_fonts.lib Wed Dec 04 12:55:39 2013 +0000 @@ -0,0 +1,1 @@ +https://mbed.org/users/dreschpe/code/TFT_fonts/#76774250fcec
diff -r 000000000000 -r 7ae28af60a9a main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Dec 04 12:55:39 2013 +0000 @@ -0,0 +1,43 @@ +#include "mbed.h" +#include "EaEpaper.h" +#include "Arial28x28.h" +#include "Arial12x12.h" +#include "font_big.h" + +EaEpaper epaper(p17, // PWR_CTRL + p9, // BORDER + p18, // DISCHARGE + p38, // RESET_DISP + p10, // BUSY + p14, // SSEL + p37, // PWM + p11,p12,p13, // MOSI,MISO,SCLK + p19,p20); // SDA,SDL + +int main() { + + epaper.cls(); + + epaper.set_font((unsigned char*) Arial28x28); // select the font + epaper.locate(5,20); + epaper.printf("Hello Mbed"); + + epaper.rect(3,15,150,50,1); + + epaper.set_font((unsigned char*) Arial12x12); + epaper.locate(5,60); + epaper.printf("small Font"); + epaper.set_font((unsigned char*) Neu42x35); + epaper.locate(5,70); + epaper.printf("big Font"); + + epaper.write_disp(); // update screen + + wait(5); + epaper.fillcircle(180,30,22,1); + epaper.circle(160,150,20,1); + + epaper.write_disp(); // update screen + + return 0; +} \ No newline at end of file
diff -r 000000000000 -r 7ae28af60a9a mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Dec 04 12:55:39 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f \ No newline at end of file