@ZinggJM Here are some of the results so far
I used your example code from https://github.com/ZinggJM/GxEPD2_PP/blob/master/examples/GxEPD2_PP_Example/src/GxEPD2_PP_Example.ino
Did the following changes
#include <Arduino.h>
#include <Adafruit_GFX.h>
#include <FreeSerifBoldItalic18pt7b.h> // ADDED
#include <FreeMonoBold9pt7b.h>
(changed the setFont to FreeSerifBoldItalic18pt7b
where applicable)
#if defined(PARTICLE)
// select one and adapt to your mapping, for buffered drawing, can use full buffer size (full HEIGHT) for Photon
//GxEPD2_BW<GxEPD2_154, GxEPD2_154::HEIGHT> display(GxEPD2_154(/*CS=D5*/ SS, /*DC=*/ A1, /*RST=*/ A0, /*BUSY=*/ D4));
..
//GxEPD2_3C<GxEPD2_583c, GxEPD2_583c::HEIGHT / 4 > display(GxEPD2_583c(/*CS=D5*/ SS, /*DC=*/ A1, /*RST=*/ A0, /*BUSY=*/ D4));
GxEPD2_3C<GxEPD2_750c, GxEPD2_750c::HEIGHT / 4 > display(GxEPD2_750c(/*CS=D5*/ SS, /*DC=*/ A1, /*RST=*/ A0, /*BUSY=*/ D4));
#endif
// comment out unused bitmaps to reduce code space used
// #include "bitmaps/Bitmaps200x200.h" // 1.54" b/w
// #include "bitmaps/Bitmaps128x250.h" // 2.13" b/w
// #include "bitmaps/Bitmaps128x296.h" // 2.9" b/w
// #include "bitmaps/Bitmaps176x264.h" // 2.7" b/w
// #include "bitmaps/Bitmaps400x300.h" // 4.2" b/w
//#include "bitmaps/Bitmaps640x384.h" // 7.5" b/w // can't select together with the others for Photon
// 3-color
// #include "bitmaps/Bitmaps3c200x200.h" // 1.54" b/w/r
// #include "bitmaps/Bitmaps3c104x212.h" // 2.13" b/w/r
// #include "bitmaps/Bitmaps3c128x296.h" // 2.9" b/w/r
// #include "bitmaps/Bitmaps3c176x264.h" // 2.7" b/w/r
#include "bitmaps/Bitmaps3c400x300.h" // 4.2" b/w/r
As you can see there seems to be some issue with the Hello Android
and Hello E-Paper
.
Is this a correct understanding of the following
void helloWorld()
{
//Serial.println("helloWorld");
display.setRotation(1);
display.setFont(&FreeSerifBoldItalic18pt7b);
display.setTextColor(GxEPD_BLACK);
uint16_t x = (display.width() - 160) / 2;
uint16_t y = display.height() / 2;
display.setFullWindow();
display.firstPage();
do
{
display.fillScreen(GxEPD_WHITE);
display.setCursor(x, y);
display.println("Hello World!");
}
while (display.nextPage());
//Serial.println("helloWorld done");
}
The display.firstPage()
triggers some sort of async function that returns True
when calling display.nextPage()
for some period of time and then when ready (display print finish) it returns False
and can exit the loop?
It’s not drawing any bitmaps. So uncommented this section back to the original setup.
// comment out unused bitmaps to reduce code space used
#include "bitmaps/Bitmaps200x200.h" // 1.54" b/w
#include "bitmaps/Bitmaps128x250.h" // 2.13" b/w
#include "bitmaps/Bitmaps128x296.h" // 2.9" b/w
#include "bitmaps/Bitmaps176x264.h" // 2.7" b/w
#include "bitmaps/Bitmaps400x300.h" // 4.2" b/w
//#include "bitmaps/Bitmaps640x384.h" // 7.5" b/w // can't select together with the others for Photon
// 3-color
#include "bitmaps/Bitmaps3c200x200.h" // 1.54" b/w/r
#include "bitmaps/Bitmaps3c104x212.h" // 2.13" b/w/r
#include "bitmaps/Bitmaps3c128x296.h" // 2.9" b/w/r
#include "bitmaps/Bitmaps3c176x264.h" // 2.7" b/w/r
#include "bitmaps/Bitmaps3c400x300.h" // 4.2" b/w/r
Now some of the logo bitmaps are back
I would LOVE to print some of my own photos onto the display.