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

2.13" e-paper does not display anything. #191

Closed dippaolo closed 1 year ago

dippaolo commented 1 year ago

I bought a new ESP32. I have E-paper 2.13" B/W. PICTURE

I upload test code and it works: https://drive.google.com/file/d/1-hPp0KYAT5JJPFKMMg8L423B0o5L0-Hf/view?usp=sharing

I send the code "ESP32-e-Paper-Weather-Display" and nothing is displayed. The serial monitor shows:

15:48:20.841 -> ets Jun 8 2016 00:22:57 15:48:20.841 -> 15:48:20.841 -> rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT) 15:48:20.841 -> configsip: 0, SPIWP:0xee 15:48:20.841 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wpdrv:0x00 15:48:20.841 -> mode:DIO, clock div:1 15:48:20.841 -> load:0x3fff0030,len:1184 15:48:20.841 -> load:0x40078000,len:13132 15:48:20.841 -> load:0x40080400,len:3036 15:48:20.841 -> entry 0x400805e4 15:48:21.213 -> 15:48:21.213 -> Connecting to: Paolo 15:48:21.400 -> WiFi connected at: 192.168.10.150 15:48:21.822 -> Wed Jan 25 2023 14:48:22 15:48:21.822 -> Initialising Display 15:48:21.822 -> Begin InitialiseDisplay... 15:48:21.869 -> ... End InitialiseDisplay 15:48:21.869 -> Attempt to get weather 15:48:22.010 -> 15:48:22.010 -> Creating object...and Decoding weather data 15:48:22.010 -> Lon: -1.57 15:48:22.010 -> Lat: 53.83 15:48:22.010 -> Main: Clouds 15:48:22.010 -> For0: scattered clouds 15:48:22.057 -> 15:48:22.057 -> 15:48:22.057 -> Icon: 03d 15:48:22.057 -> Temp: 9.19 15:48:22.057 -> Pres: 1028.00 15:48:22.057 -> Humi: 90.00 15:48:22.057 -> TLow: 7.40 15:48:22.057 -> THig: 9.71 15:48:22.057 -> WSpd: 5.66 15:48:22.057 -> WDir: 280.00 15:48:22.057 -> CCov: 40 15:48:22.057 -> Visi: 10000 15:48:22.057 -> Rain: 0.00 15:48:22.057 -> Snow: 0.00 15:48:22.057 -> Ctry: GB 15:48:22.057 -> SRis: 1674633857 15:48:22.057 -> SSet: 1674664346 15:48:22.057 -> TZon: 0 15:48:22.291 -> 15:48:22.291 -> Creating object...and Decoding forecast data 15:48:22.291 -> 15:48:22.291 -> Receiving Forecast period - 15:48:22.291 -> Period-0-------------- 15:48:22.291 -> DTim: 1674658800 15:48:22.291 -> Temp: 9.19 15:48:22.291 -> TLow: 8.41 15:48:22.291 -> THig: 9.19 15:48:22.291 -> Pres: 1028.00 15:48:22.291 -> Humi: 90.00 15:48:22.291 -> For0: Rain 15:48:22.339 -> 15:48:22.339 -> 15:48:22.339 -> Icon: 10d 15:48:22.339 -> Desc: light rain 15:48:22.339 -> CCov: 40 15:48:22.339 -> WSpd: 5.28 15:48:22.339 -> WDir: 306.00 15:48:22.339 -> Rain: 0.21 15:48:22.339 -> Snow: 0.00 15:48:22.339 -> Pop: 0.54 15:48:22.339 -> Peri: 2023-01-25 15:00:00 15:48:22.339 -> 15:48:22.339 -> Period-1-------------- 15:48:22.339 -> DTim: 1674669600 15:48:22.339 -> Temp: 7.96 15:48:22.339 -> TLow: 5.49 15:48:22.339 -> THig: 7.96 15:48:22.339 -> Pres: 1028.00 15:48:22.339 -> Humi: 84.00 15:48:22.339 -> For0: Clouds 15:48:22.339 -> 15:48:22.339 -> 15:48:22.339 -> Icon: 03n 15:48:22.339 -> Desc: scattered clouds 15:48:22.339 -> CCov: 49 15:48:22.339 -> WSpd: 3.35 15:48:22.339 -> WDir: 315.00 15:48:22.339 -> Rain: 0.00 15:48:22.339 -> Snow: 0.00 15:48:22.339 -> Pop: 0.40 15:48:22.339 -> Peri: 2023-01-25 18:00:00 15:48:22.339 -> 15:48:22.339 -> Period-2-------------- 15:48:22.339 -> DTim: 1674680400 15:48:22.339 -> Temp: 5.87 15:48:22.339 -> TLow: 4.21 15:48:22.339 -> THig: 5.87 15:48:22.339 -> Pres: 1030.00 15:48:22.339 -> Humi: 82.00 15:48:22.339 -> For0: Clouds 15:48:22.339 -> 15:48:22.339 -> 15:48:22.339 -> Icon: 02n 15:48:22.339 -> Desc: few clouds 15:48:22.339 -> CCov: 15 15:48:22.386 -> WSpd: 2.93 15:48:22.386 -> WDir: 313.00 15:48:22.386 -> Rain: 0.00 15:48:22.386 -> Snow: 0.00 15:48:22.386 -> Pop: 0.00 15:48:22.386 -> Peri: 2023-01-25 21:00:00 15:48:22.386 -> 15:48:22.386 -> Period-3-------------- 15:48:22.386 -> DTim: 1674691200 15:48:22.386 -> Temp: 3.54 15:48:22.386 -> TLow: 3.54 15:48:22.386 -> THig: 3.54 15:48:22.386 -> Pres: 1031.00 15:48:22.386 -> Humi: 79.00 15:48:22.386 -> For0: Clear 15:48:22.386 -> 15:48:22.386 -> 15:48:22.386 -> Icon: 01n 15:48:22.386 -> Desc: clear sky 15:48:22.386 -> CCov: 5 15:48:22.386 -> WSpd: 3.15 15:48:22.386 -> WDir: 323.00 15:48:22.386 -> Rain: 0.00 15:48:22.386 -> Snow: 0.00 15:48:22.386 -> Pop: 0.00 15:48:22.386 -> Peri: 2023-01-26 00:00:00 15:48:22.386 -> 15:48:22.386 -> Period-4-------------- 15:48:22.386 -> DTim: 1674702000 15:48:22.386 -> Temp: 3.85 15:48:22.386 -> TLow: 3.85 15:48:22.386 -> THig: 3.85 15:48:22.386 -> Pres: 1031.00 15:48:22.386 -> Humi: 76.00 15:48:22.386 -> For0: Clouds 15:48:22.386 -> 15:48:22.386 -> 15:48:22.386 -> Icon: 03n 15:48:22.386 -> Desc: scattered clouds 15:48:22.386 -> CCov: 25 15:48:22.386 -> WSpd: 4.09 15:48:22.386 -> WDir: 341.00 15:48:22.434 -> Rain: 0.00 15:48:22.434 -> Snow: 0.00 15:48:22.434 -> Pop: 0.00 15:48:22.434 -> Peri: 2023-01-26 03:00:00 15:48:22.528 -> Displaying Weather 15:48:22.528 -> Wed Jan 25 2023 14:48:23 15:48:22.528 -> Icon name: 03d 15:48:22.528 -> Icon name: 10d 15:48:22.528 -> Icon name: 03n 15:48:22.528 -> Icon name: 02n 15:48:22.528 -> Icon name: 01n 15:48:22.528 -> Icon name: 03n 15:48:22.947 -> _PowerOn : 372998 15:48:24.120 -> _Update_Full : 998000 15:48:24.919 -> _PowerOff : 734000 15:48:25.621 -> _PowerOff : 700000 15:48:25.621 -> Entering 697-secs of sleep time 15:48:25.621 -> Awake for : 4.433-secs 15:48:25.621 -> Starting deep-sleep period...

I see that the test code has GxEPD. Can something be done about it?

dippaolo commented 1 year ago

Success!

I had to change lines 55 for display 2.13.

old value: GxEPD2_BW<GxEPD2_213_B73, GxEPD2_213_B73::HEIGHT> display(GxEPD2_213_B73(/CS=D8/ EPD_CS, /DC=D3/ EPD_DC, /RST=D4/ EPD_RST, /BUSY=D2/ EPD_BUSY));

New value: GxEPD2_BW<GxEPD2_213, GxEPD2_213::HEIGHT> display(GxEPD2_213(/CS=5/ EPD_CS, /DC=17/ EPD_DC, /RST=16/ EPD_RST, /BUSY=4/ EPD_BUSY));

My e-paper is not GxEPD2_213_B73.

Now it is working :)