From 925167ec3cebc8690ab903e20a3247a5f04e71d0 Mon Sep 17 00:00:00 2001 From: Marcel Peterkau Date: Tue, 9 Jan 2024 22:52:28 +0100 Subject: [PATCH] small Layout-change of OLED during OTA --- Software/src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Software/src/main.cpp b/Software/src/main.cpp index 5f15bfb..cb526e3 100644 --- a/Software/src/main.cpp +++ b/Software/src/main.cpp @@ -169,7 +169,7 @@ void setup() ArduinoOTA.onStart([]() { u8x8.clearDisplay(); - u8x8.drawString(0, 0, "OTA-Update"); + u8x8.drawString(0, 6, "OTA-Update"); u8x8.refreshDisplay(); }); ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) @@ -179,17 +179,17 @@ void setup() { u8x8.clearDisplay(); refreshed = true; - u8x8.drawString(0, 0, "OTA Upload"); + u8x8.drawString(0, 6, "OTA Upload"); } uint32_t percent = progress / (total / 100); - u8x8.setCursor(0, 1); + u8x8.setCursor(0, 7); u8x8.printf("%d %%", percent); u8x8.refreshDisplay(); }); ArduinoOTA.onEnd([]() { u8x8.clearDisplay(); - u8x8.drawString(0, 0, "OTA-Restart"); + u8x8.drawString(0, 6, "OTA-Restart"); u8x8.refreshDisplay(); }); #endif