From 2ba43fd0bacc3de50abf1b6648449730802cec6d Mon Sep 17 00:00:00 2001 From: drkhsh Date: Tue, 28 Apr 2026 00:49:38 +0200 Subject: [PATCH] Boot: bring backlight up after first boot-screen frame 037af2a left the backlight at 0 in Display::begin() to avoid exposing an unpainted framebuffer, but powerMgr.setBrightness() at step 24 only runs at the end of boot, so the whole boot sequence rendered onto a dark panel. Set PWM 128 right after the first lvBootScreen.setProgress(), once LVGL has flushed the boot screen. powerMgr at step 24 still overrides with the user's configured brightness. --- src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 8c2dfd8..5879994 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -440,6 +440,11 @@ void setup() { ui.lvStatusBar().setLoRaOnline(radioOnline); lvBootScreen.setProgress(0.45f, radioOnline ? "Radio online" : "Radio FAILED"); + // Display::begin() left the backlight at 0 to hide an unpainted + // framebuffer; the setProgress() above has now flushed the boot screen. + // powerMgr at step 24 overrides with the user's configured value. + display.setBrightness(128); + // Step 7: Touch HAL — GT911 I2C touch.begin(); lvBootScreen.setProgress(0.50f, "Touch ready");