Skip to main content

animation_task

Function animation_task 

Source
pub(crate) fn animation_task(
    led_green: Rp2040Led,
    led_yellow: Rp2040Led,
) -> Result<SpawnToken<impl Sized>, SpawnError>
Expand description

Drive the LEDs based on the current operating state. Spawn once at boot.

Both LEDs are owned by this task for the lifetime of the firmware.