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
946 stars 206 forks source link

4.2 - 3 Color Display only showing part of the whole screen #163

Closed Patrick-Schwellnuss closed 2 years ago

Patrick-Schwellnuss commented 2 years ago

Hello there, i had a spare 4.2 inch E-Paper Module from waveshare laying around and tried to get started. Well from the Serial everything seems fine, and after changing the "display_init();" it even displays... well something. My display isnt showing everything, only the upper left part and the 90 degree flipped 0 on the right.

https://share-your-photo.com/97fcbd06b7

the Board i use is the Lolin ESP32 lite and the Display is the 4.2 - 3 Color Waveshare E-Ink module ( i guess first version). Here is a short snippet of the Serial Console:

oh, and the GxEPD2 Example does somethin similar when the test text is displayed. the Fullscreen Images on the other hand work just fine.

Creating object...and Decoding weather data Lon: 11.67 Lat: 52.17 Main: Clouds For0: scattered clouds

Icon: 03n Temp: 9.28 Pres: 1031.00 Humi: 91.00 TLow: 8.05 THig: 10.52 WSpd: 1.28 WDir: 38.00 CCov: 28 Visi: 10000 Rain: 0.00 Snow: 0.00 Ctry: DE SRis: 1633584261 SSet: 1633624660 TZon: 7200

Creating object...and Decoding forecast data

Receiving Forecast period - Period-0-------------- DTim: 1633640400 Temp: 9.28 TLow: 9.28 THig: 10.48 Pres: 1031.00 Humi: 91.00 For0: Clouds

any ideas? i have none :(

G6EJD commented 2 years ago

Have you changed the screen driver object to the 3 Colour version? You get that from the GxEPD2 library. Try this: GxEPD2_3C<GxEPD2_420c, GxEPD2_420c::HEIGHT> display(GxEPD2_420c(/CS=5/ SS, /DC=/ 17, /RST=/ 16, /BUSY=/ 4)); // GDEW042Z15

Change the pins to match so CS is the same as your definition, SS and so on