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
@@ -59,6 +59,15 @@ bool WioTrackerL2Board::initExpander() {
return false; // expander not responding
}
// The backlight (the LP5814 at 0x2C) dark before the panel is powered and
// reset below: until it's initialised the panel shows what's in its memory (a
// white bar over the ~0.5 s settle), and the LP5814 keeps its state across a
// restart. Standby: CHIP_EN off; the display driver brings it up again.
Wire.beginTransmission(0x2C);
Wire.write((uint8_t)0x00);
Wire.write((uint8_t)0x00);
Wire.endTransmission();
expSetInput(EXP_PIN_WAKE_BTN);
expSetInput(EXP_PIN_I2C_IRQ);
expSetInput(EXP_PIN_SD_DETECT);