From 202c6fad1b0fad4bd0845501b3f95492e973ca4a Mon Sep 17 00:00:00 2001 From: SocksOnHead Date: Sun, 20 Jul 2025 16:50:38 +0200 Subject: [PATCH] Fix dispaly turning off before loading data --- .../INFOSCREEN_WITH_INTERVAL.ino | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/ClientMachineCode/INFOSCREEN_WITH_INTERVAL/INFOSCREEN_WITH_INTERVAL.ino b/ClientMachineCode/INFOSCREEN_WITH_INTERVAL/INFOSCREEN_WITH_INTERVAL.ino index 0fab250..20c96bc 100644 --- a/ClientMachineCode/INFOSCREEN_WITH_INTERVAL/INFOSCREEN_WITH_INTERVAL.ino +++ b/ClientMachineCode/INFOSCREEN_WITH_INTERVAL/INFOSCREEN_WITH_INTERVAL.ino @@ -7,12 +7,12 @@ #include #include -// WiFi credentials (only 2.4ghz) +// WiFi credentials const char* ssid = "x"; const char* password = "x"; // 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 String imageUrl = ""; // Will be populated from JSON @@ -241,12 +241,6 @@ void setup() { Paint_NewImage(BlackImage, 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"); // Connect to WiFi