pub async fn backlight_runner(
spi: Spi<'static, Async, Master>,
cs0: Output<'static>,
cs1: Output<'static>,
sdb: Output<'static>,
) -> !Expand description
Runs the backlight controller loop.
Initializes both SNLED27351 driver chips, performs a soft-start brightness ramp, then enters an event loop that concurrently handles two concerns:
- Indicator and calibration commands arriving on
BACKLIGHT_CH. - Thermal polling on a
THERMAL_POLLticker: reads the TDF register from both chips and reduces overall brightness toTHERMAL_THROTTLE_BRIGHTNESSif either exceeds 70 °C, restoring it automatically when both cool down. During calibrationrender_calibis used instead ofrender_allso the calibration display is never clobbered by a thermal event.