Skip to main content

fill_all_leds

Function fill_all_leds 

Source
async fn fill_all_leds(
    driver: &mut Driver<SpiTransport<Spi<'static, Async, Master>, Output<'static>, Output<'static>, 2>, 2>,
    color: (u8, u8, u8),
    brightness: u8,
) -> Result<(), SpiTransportError<<Spi<'static, Async, Master> as ErrorType>::Error>>
Expand description

Paint every LED with color at brightness and flush to hardware.

Combines the three-step correct → stage_all_leds → flush sequence that appears in every solid-colour calibration frame, so each call site is a single expression.