![](/media/cache/profiles/d1588e685562af341ff2448de4b674d1.50x50_q85.jpg)
E_paper, E_ink, Screen size 1.54", resolution 200x200, 4 wire spi, Waveshare, Black and White, Kl25Z, 8 wire print connector, supply 3.3 Volt, IL0373 Controller, font size is 8, 12, 16 and 24.
Diff: main.cpp
- Revision:
- 1:d27a7e06c233
- Parent:
- 0:665e04c85d8d
- Child:
- 2:d7fc318a1528
--- a/main.cpp Sun Mar 25 12:14:55 2018 +0000 +++ b/main.cpp Mon Mar 26 17:20:56 2018 +0000 @@ -25,14 +25,17 @@ */ #include "mbed.h" -#include <epd1in54.h> -#include <epdpaint.h> +#include "epd1in54.h" +#include "epdpaint.h" +#include "epdif.h" #include "imagedata.h" #define COLORED 0 #define UNCOLORED 1 +//public: Serial pc(USBTX, USBRX, 115200); + DigitalOut reset_pin(PTC17); DigitalOut dc_pin(PTD5); DigitalOut cs_pin(PTD0); @@ -41,6 +44,10 @@ DigitalOut myled(LED1); +// See --- epdif.h --- +DigitalOut pins_out[] = {PTC17, PTD5, PTD0}; //reset_pin, dc_pin, cs_pin +DigitalIn pins_in[] = {PTA13}; //busy pin + /** * Due to RAM not enough in Arduino UNO, a frame buffer is not allowed. * In this case, a smaller image buffer is allocated and you have to @@ -55,7 +62,7 @@ void setup() { // put your setup code here, to run once: - Serial.begin(9600); + pc.begin(9600); if (epd.Init(lut_full_update) != 0) { Serial.print("e-Paper init failed"); return;