Hallo Together,
maybe you can help me with my problem regarding the displaying of my waveshare epaper 213inc colour.
epaper: epaper 213c
connecting module: E-paper_Driver_Hat
I thinks its pretty basic but I tried for a long time now and I am not sure whats the problem.
I use an arduino micro to connect over the epaper Driver Hat to the epaper 213c.
My wiring: VCC > 3,3V, GND > GND, DIN > D11, CLK > D13, CS > D10, DC > D8, RST > D9, BUSY > D7
Also I use an simple example code (from Zingg) just to print Hello world. There is no problem with uploading it to the arduino but the display just doesnt show anything. (Also installed the libraries eg. GxEPD2, and adafruit GFX Library)
Here the code.
// GxEPD2_HelloWorld.ino by Jean-Marc Zingg
// see GxEPD2_wiring_examples.h for wiring suggestions and examples
// if you use a different wiring, you need to adapt the constructor parameters!
// uncomment next line to use class GFX of library GFX_Root instead of Adafruit_GFX
//#include <GFX.h>
#include <GxEPD2_BW.h>
#include <GxEPD2_3C.h>
#include <Fonts/FreeMonoBold9pt7b.h>
//// select the display class and display driver class in the following file (new style):
#include "GxEPD2_display_selection_new_style.h"
//
//// or select the display constructor line in one of the following files (old style):
#include "GxEPD2_display_selection.h"
#include "GxEPD2_display_selection_added.h"
#define GxEPD2_DRIVER_CLASS GxEPD2_213c
// alternately you can copy the constructor from GxEPD2_display_selection.h or GxEPD2_display_selection_added.h to here
// e.g. for Wemos D1 mini:
//GxEPD2_BW<GxEPD2_154_D67, GxEPD2_154_D67::HEIGHT> display(GxEPD2_154_D67(/*CS=D8*/ SS, /*DC=D3*/ 0, /*RST=D4*/ 2, /*BUSY=D2*/ 4)); // GDEH0154D67
GxEPD2_3C<GxEPD2_213c, MAX_HEIGHT_3C(GxEPD2_213c)> display(GxEPD2_213c(/*CS=*/ SS, /*DC=*/ 8, /*RST=*/ 9, /*BUSY=*/ 7)); // GDEW0213Z16
void setup()
{
display.init();
helloWorld();
display.hibernate();
}
const char HelloWorld[] = "Hello World!";
void helloWorld()
{
display.setRotation(1);
display.setFont(&FreeMonoBold9pt7b);
display.setTextColor(GxEPD_BLACK);
int16_t tbx, tby; uint16_t tbw, tbh;
display.getTextBounds(HelloWorld, 0, 0, &tbx, &tby, &tbw, &tbh);
// center the bounding box by transposition of the origin:
uint16_t x = ((display.width() - tbw) / 2) - tbx;
uint16_t y = ((display.height() - tbh) / 2) - tby;
display.setFullWindow();
display.firstPage();
do
{
display.fillScreen(GxEPD_WHITE);
display.setCursor(x, y);
display.print(HelloWorld);
}
while (display.nextPage());
}
void loop() {};
Is there maybe a problem with the 5V output maybe on the I/O to the epaper driver hat? I thought that the module can handle it but i am not sure.
Thanks in advance!
Samuel