Skip to main content

render_all

Function render_all 

Source
async fn render_all(
    driver: &mut Driver<I2cTransport<I2c<'static, Async, Master>, 2>, 2>,
    state: BacklightState,
) -> Result<(), I2cTransportError<<I2c<'static, Async, Master> as ErrorType>::Error>>
Expand description

Writes every LED to hardware according to state.

Paints the background white at the current brightness, then overlays the Caps Lock indicator. Called after any state change requiring a full redraw (e.g. thermal-throttle transitions).

ยงErrors

Returns Err if any bus transaction fails.