![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Dependencies: BurstSPI EaEpaper TFT_fonts mbed
Fork of epaper_mbed_test by
main.cpp
- Committer:
- Starz
- Date:
- 2015-04-23
- Revision:
- 2:03336b128c50
- Parent:
- 1:5ba919589a12
File content as of revision 2:03336b128c50:
#include "mbed.h" #include "EaEpaper.h" #include "Arial28x28.h" #include "Arial12x12.h" #include "font_big.h" #include "graphics.h" #include <string> 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 Serial rs232(p13,p14); Serial pc(USBTX, USBRX); // tx, rx DigitalOut myled(LED1); string cmd =""; int main() { /* epaper.cls(); epaper.setmode(1); epaper.set_font((unsigned char*) Arial28x28); // select the font epaper.locate(5,20); epaper.printf("Hello"); epaper.rect(3,15,150,50,1); epaper.setmode(1); epaper.circle(180,30,22,1); epaper.write_disp(); // update screen*/ pc.printf("Hello, i'm mbed !!!\r\n"); rs232.baud(115200); while (true) { if (rs232.readable()) { myled = !myled; cmd = rs232.getc(); pc.printf("%s\r\n",cmd); } } }