Test program for the E-Paper display
Dependencies: BurstSPI EaEpaper TFT_fonts mbed
main.cpp
- Committer:
- dreschpe
- Date:
- 2013-11-10
- Revision:
- 2:e1e4e20e6b26
- Parent:
- 0:057244fcbbb6
File content as of revision 2:e1e4e20e6b26:
#include "mbed.h" #include "EaEpaper.h" #include "Arial28x28.h" #include "Arial12x12.h" #include "font_big.h" #include "graphics.h" EaEpaper epaper(PTD7, // PWR_CTRL PTD6, // BORDER PTE31, // DISCHARGE PTA17, // RESET_DISP PTA16, // BUSY PTC17, // SSEL PTD4, // PWM PTD2,PTD3,PTD1, // MOSI,MISO,SCLK PTE0,PTE1); // SDA,SDL int main() { epaper.cls(); epaper.set_font((unsigned char*) Arial28x28); // select the font epaper.locate(5,20); // setup cursor epaper.printf("Hello Mbed"); // print text epaper.rect(3,15,150,50,1); // draw frame epaper.set_font((unsigned char*) Arial12x12); // load font epaper.locate(5,60); // setup cursor epaper.printf("small Font"); // print text epaper.set_font((unsigned char*) Neu42x35); // load font epaper.locate(5,70); // setup cursor epaper.printf("big Font"); // print text epaper.write_disp(); // update screen wait(5); // wait 5s epaper.fillcircle(180,30,22,1); // paint filled circle epaper.circle(160,150,20,1); // paint circle epaper.write_disp(); // update screen }