Hello,
I cannot manage to Display something else than noise on my “waveshare e-paper 2,9” b/w/r Display", I am using a “Doit ESP32 Devkit V1”.
So as I said all it displays on the screen is noise, it also create red pixels but theres no “red” in the code…
I’m stuck for weeks now, can anyone help me Display a HelloWorld ??
I’m quite new to the land of makers and adruino, so I don’t even know if my wiring is right, I used this guide to setup the SPI aswell:
And heres the current wiring I use:
DIN - D23
CLK - D18
CS - D5
DC - D22
RST - D21
BUSY - D4
I used this library and its examples:
https://github.com/ZinggJM/GxEPD2/blob/master/examples/GxEPD2_Example/GxEPD2_Example.ino
And I run this porgram:
#define ENABLE_GxEPD2_GFX 0
#include <GxEPD.h>
#include <GxEPD2_BW.h>
#include <GxEPD2_3C.h>
#include <Fonts/FreeMonoBold9pt7b.h>
#include “bitmaps/Bitmaps3c128x296.h” // 2.9" b/w/r
GxEPD2_3C<GxEPD2_750c, GxEPD2_750c::HEIGHT> display(GxEPD2_750c(/CS=5/ SS, /DC=/ 22, /RST=/ 21, /BUSY=/ 4));
void setup(){
Serial.begin(115200);
Serial.println(“setup”);
initDisplay();
Serial.println(“setup done”);
}
void loop(){
}
const char HelloWorld = “Hello World!”;
void initDisplay(){
display.init();
display.setRotation(1);
display.setTextColor(GxEPD_BLACK);
display.setFont(&FreeMonoBold9pt7b);
int16_t tbx, tby; uint16_t tbw, tbh;
display.getTextBounds(HelloWorld, 0, 0, &tbx, &tby, &tbw, &tbh);
uint16_t x = (display.width() - tbw) / 2;
uint16_t y = (display.height() + tbh) / 2; // y is base line!
display.setFullWindow();
display.firstPage();
do
{
//Those 3 lines does nothing, without them the noise is still generated on the display
display.fillScreen(GxEPD_WHITE);
display.setCursor(x, y);
display.print(HelloWorld);
}
while (display.nextPage());
}
Thanks, and I hope somebody can help :x !!