Waveshare 2.9 and Heltec WIFI LoRa 32 V2

Hi!

I’m trying to connect mit LoRa-ESP32 with an ePaper-Display from Waveshare.

Therefore I’m using the GxEPD2 Library, but this does not work (with the library givven by waveshare the display works, but the usage is disgusting…).

Know, I don’t know if the Libraries and includes are not correct or the pin-setup. Maybe some of you already connected such a display to that ESP.

My Pin-Setup is:
GND -> GND
3.3 -> VCC
DIN -> 27 LORA_MOSI
CLK -> 5 LORA_SCK, VSPI_CSO
DC -> 15 OLED_SCL (I’m not using the onboard OLED)
CS -> 4 OLED_SDA
RST -> 16 OLED_RST
BUSY -> 36

Is this Pin-Setup useable? Do you have ideas or working includes for the Heltec ESP and GxEPD2?

Thanks
SUT_2

please refer the picture:
%E5%9B%BE%E7%89%87
%E5%9B%BE%E7%89%87

1 Like

Thank you - it worked

Hi folks,
I am faced with the same problem. I’m not able to see anything on the ePaper display.
I use a Heltec ESP32 LoRa v2 with ePaper 2.13" HAT (B) with 3 colors.

I need LoRa but not the OLED.
Would you please so kind to give me the right port numbers?
At the moment my config is:
DIN 27
CLK 5
DC 22
CS 18
RST 16
BUSY 23

Another question is: Where is the right place to config the pins if I would use the GxEPD2 library? In GxEPD2_display_selection.h there is no possibility to configure DIN (MOSI) and CLK (SCK).
Sorry if my questions are stupid but I am totally new to this.
Thanks in advance.
Max.

Hi sut_2

would it be possible to show the configuration of the pins for the ePaper display on the Heltec Lora32 using GxEPD2 library?
Thanks in advance.
Max.

  • Here, the pin configuration declared by #define can be changed according to your needs, as long as it is not occupied.[1]
  • If you need to use other libraries, please check the corresponding official instructions or documents.

reference

[1]

Thanks for reply.
Unfortunately the LoRa32 board will not work with your suggestion. Maybe because of the LoRa module which uses the SPI port too.
However I tried another CS port instead of pin 18 but also without any success.
Any ideas else? Would be nice.

Thanks in advance.
Max

I found a solution with Waveshare 2.9 V2 and ZinggJM/GxEPD2^1.3.6

Now I’m using
GxEPD2_DISPLAY_CLASS<GxEPD2_DRIVER_CLASS,
MAX_HEIGHT(GxEPD2_DRIVER_CLASS)> display(GxEPD2_DRIVER_CLASS(/CS=/
2, DC=/ 12, /RST=/ 17, /BUSY=/ 39));

from GxEPD2_display_selection_new_style.h

CS = 2
DC = 12
RST = 17
BUSY = 39
DIN (SPI MOSI) = 27, which is (i think) model dependent and unchangeable
CLK (SPI SCK) = 5, which is (i think) model dependent and unchangeable

Display is working with 3V3

Thanks for your help!!