Skip to main content

task

Function task 

Source
pub fn task(
    button: Input<'static>,
) -> Result<SpawnToken<impl Sized>, SpawnError>
Expand description

Classifies presses and dispatches the configured actions.

Owns the button pin for the rest of the firmware; the boot phase runs earlier, in boot_factory_reset, before this task is spawned.