Xinyuan-LilyGO/LilyGo-T5-Epaper-Series

Compiling error on LilyGo 2.13 ePaper display (DEPG0213BN)

levycarneiro opened this issue · 1 comments

Hello!

I'm trying to use a LilyGo 2.13 ePaper display. The model is DEPG0213BN.

I followed the steps in the github repository: Xinyuan-LilyGO/LilyGo-T5-Epaper-Series.

  1. I installed Adafruit-GFX library, and the GxEPD library from this repository: https://github.com/lewisxhe/GxEPD

  2. I copied all the files from https://github.com/lewisxhe/GxEPD/tree/master/src to my libraries folder.

  3. I took the example code from the github repository at Xinyuan-LilyGO/LilyGo-T5-Epaper-Series/blob/master/examples/GxEPD_Example/GxEPD_Example.ino

  4. I uncommented the following lines:

#define LILYGO_T5_V213

and

#include <GxDEPG0213BN/GxDEPG0213BN.h>    // 2.13" b/w  form DKE GROUP
  1. In my Arduino IDE, I have "ESP32 Dev Module" selected as board.

  2. When trying to compile, I get the error:

In file included from /Users/xxxxx/Arduino/libraries/GxEPD-lewisxhe/GxEPD.h:20:0,
                 from /Users/xxxxx/Arduino/GxEPD_Example/GxEPD_Example.ino:10:
/Users/xxxxx/Arduino/libraries/GxEPD-lewisxhe/GxFont_GFX.h:77:13: error: 'int16_t GxFont_GFX::getUTF8Width(const char*)' cannot be overloaded
     int16_t getUTF8Width(const char *str);
             ^
/Users/xxxxx/Arduino/libraries/GxEPD-lewisxhe/GxFont_GFX.h:45:13: error: with 'int16_t GxFont_GFX::getUTF8Width(const char*)'
     int16_t getUTF8Width(const char *str);
             ^

Any idea how to solve this?

Thanks!