Fix dispaly turning off before loading data

This commit is contained in:
2025-07-20 16:50:38 +02:00
committed by GitHub
parent 337be8e534
commit 202c6fad1b

View File

@@ -7,12 +7,12 @@
#include <ArduinoJson.h> #include <ArduinoJson.h>
#include <JPEGDEC.h> #include <JPEGDEC.h>
// WiFi credentials (only 2.4ghz) // WiFi credentials
const char* ssid = "x"; const char* ssid = "x";
const char* password = "x"; const char* password = "x";
// API endpoints // API endpoints
const char* connectionInformation = "http://x:5000/home/configuration"; const char* connectionInformation = "http://x/home/configuration";
// These will be updated from the connection information // These will be updated from the connection information
String imageUrl = ""; // Will be populated from JSON String imageUrl = ""; // Will be populated from JSON
@@ -241,12 +241,6 @@ void setup() {
Paint_NewImage(BlackImage, EPD_WIDTH, EPD_HEIGHT, 0, WHITE); Paint_NewImage(BlackImage, EPD_WIDTH, EPD_HEIGHT, 0, WHITE);
Paint_NewImage(RYImage, EPD_WIDTH, EPD_HEIGHT, 0, WHITE); Paint_NewImage(RYImage, EPD_WIDTH, EPD_HEIGHT, 0, WHITE);
// Clear both buffers to WHITE using Paint library
Paint_SelectImage(BlackImage);
Paint_Clear(WHITE);
Paint_SelectImage(RYImage);
Paint_Clear(WHITE);
Serial.println("Buffers allocated and cleared"); Serial.println("Buffers allocated and cleared");
// Connect to WiFi // Connect to WiFi