fix(l2): no bright bar on the dark screen at power-on

The first frame (the sprite's default white background, black dots) came out as
a bright bar across the middle of the screen. A plain black frame now, and the
backlight stays off until it's sent: dark through the panel's reset and init
(the LP5814 keeps its state across a restart), lit with the first frame.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-10-25 21:33:59 +01:00
co-authored by Claude Sonnet 5.5
parent e6ae1d63b8
commit e03fa7c084
3 changed files with 33 additions and 4 deletions
+8
View File
@@ -224,6 +224,13 @@ void setup() {
DisplayDriver* disp = NULL;
if (display.begin()) {
disp = &display;
#if defined(SEEED_WIO_TRACKER_L2)
// L2: a plain black frame -- the panel's backlight comes on with it (WioTrackerL2Display
// ::endFrame()). The default colours here (white background, black dots) came out as a
// bright bar across the middle of the dark screen. LVGL's splash follows within a second.
disp->startFrame(0x0000);
disp->endFrame();
#else
disp->startFrame();
#ifdef ST7789
disp->setTextSize(2);
@@ -234,6 +241,7 @@ void setup() {
for (int i = -1; i <= 1; i++)
disp->fillRect(disp->width() / 2 + i * 3 * dot - dot / 2, disp->height() / 2 - dot / 2, dot, dot);
disp->endFrame();
#endif
}
#endif