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.
This commit is contained in:
drkhsh
2026-04-28 00:49:38 +02:00
parent 19c589583d
commit 2ba43fd0ba
+5
View File
@@ -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");