Error with GxEPD2

Hi,
I am trying to load up a weather station for my esp32 e paper setup and was having trouble with that and I was suspecting it was the gxepd library which wasn't working, so to test it I recently got the gxepd library separately for my e-paper and I am having trouble loading up any sketches due to this error (this one is from the HelloWorld sketch):

:\Users\jaira\Downloads\GxEPD2-master\GxEPD2-master\examples\GxEPD2_HelloWorld\GxEPD2_HelloWorld.ino:26:10: fatal error: GxEPD2_BW.h: No such file or directory
 #include <GxEPD2_BW.h>
          ^~~~~~~~~~~~~
compilation terminated.

exit status 1

Compilation error: GxEPD2_BW.h: No such file or directory

I have the waveshare 7.3in 7 colour e paper and the universal hat that came with it. When I run the waveshare examples they work fine.

My current pinout is:
BUSY -> 4
CS -> 5
RST -> 21
DC -> 22
SCK -> 18
DIN -> 23
GND -> GND
VCC -> VCC

Any fixes for this?

You need to install GxEPD2 using Library Manager.
Then it is in the correct libraries folder. GxEPD2 is known by Library Manager.

Yes, I realised that a bit late, also had to download the adafruit library just for it to work.
Thanks for the response though!!

The library manager does this automatically, it knows the dependencies.

You will need version 1.5.5 of GxEPD2 for your display. It should be available by Library Manager soon. See also
GxEPD2 with Waveshare 5.65" 7-Color ePaper only getting _PowerOn _refresh and _PowerOff - Using Arduino / Displays - Arduino Forum
-jz-

1 Like

Version 1.5.5 of library GxEPD2 is available, install or update with Library Manager.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.