![](/media/cache/profiles/fe04e05fbe48920b8ba90bea2ddfe60b.50x50_q85.jpg)
Test program for E.Paper display for LPC1768
Dependencies: BurstSPI EaEpaper TFT_fonts mbed
Fork of epaper_mbed_130411_KL25Z by
main.cpp
- Committer:
- dreschpe
- Date:
- 2013-11-10
- Revision:
- 1:5ba919589a12
- Parent:
- 0:057244fcbbb6
File content as of revision 1:5ba919589a12:
#include "mbed.h" #include "EaEpaper.h" #include "Arial28x28.h" #include "Arial12x12.h" #include "font_big.h" #include "graphics.h" EaEpaper epaper(p9, // PWR_CTRL p10, // BORDER p11, // DISCHARGE p12, // RESET_DISP p13, // BUSY p8, // SSEL p26, // PWM p5,p6,p7, // MOSI,MISO,SCLK p28,p27); // SDA,SCL 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 }