G6EJD / ESP32-e-Paper-Weather-Display

An ESP32 and 2.9", 4.2" or 7.5" ePaper Display reads Weather Underground data via their API and then displays the weather
Other
978 stars 207 forks source link

Problem with display.init #137

Closed randompee closed 3 years ago

randompee commented 3 years ago

I tried your fine work with two E-Paper modules: Waveshare_2_13_T5 and MH-ET Live 2.9 inch B/W. The last needed class "GxEPD2_BW<GxEPD2_290_T5" instead of "GxEPD2_BW<GxEPD2_290", b.t.w.

The problem I encountered was, that the code compiled and downloaded successfully, but stopped executing after successful WiFi connection. I found out that all was well as soon as I replaced display.init(115200, true, 2, false) by display.init()

G6EJD commented 3 years ago

Thank you for alerting me to this issue. It creates a dilemma, Waveshare changed their e-paper HAT's to favour the RPi, so the GxEPD2 author added a function to shortened the reset period to 2mS to make the new HAT's work, but then there are still some older HAT's in existence, so what I will do it edit the source code to show both options and explain what option to use in the Readme..

I've checked the 2.9" T5 code that looks correct, there are versions for each display type.