lmarzen / esp32-weather-epd

A low-power E-Paper weather display powered by an ESP32 microcontroller. Utilizes the OpenWeatherMap API.
GNU General Public License v3.0
2.33k stars 179 forks source link

Display Refreshes Sometimes..... #78

Closed xJBx1 closed 5 months ago

xJBx1 commented 5 months ago

Hi, I had issues with the code from #73 , and I found that the display will work if the initilise function looks like this: `void initDisplay() { // SPI.begin(PIN_EPD_SCK, // PIN_EPD_MISO, // PIN_EPD_MOSI, // PIN_EPD_CS);

display.init(115200, true, 20, false); display.setRotation(0); display.setTextSize(1); display.setTextColor(GxEPD_BLACK); display.setTextWrap(false); //display.fillScreen(GxEPD_WHITE); display.setFullWindow(); display.firstPage(); // use paged drawing mode, sets fillScreen(GxEPD_WHITE) return; } // end initDisplay`

But when I connect it to a battery it won't work, I tried plugging in the usb cable to an outlet and it refreshes the first time to show the data well but doesn't refresh after an hour.

What should I do?

xJBx1 commented 5 months ago

Update: for my setup I needed to change the initialise function to: display.init(115200, false, 20, false);

It all works now, thanks for the project!