embassy-rp

Crates

git

Versions

rp2040

Flavors

Function is_bootsel_pressed

Source
pub fn is_bootsel_pressed(_p: Peri<'_, BOOTSEL>) -> bool
Expand description

Reads the BOOTSEL button. Returns true if the button is pressed.

Reading isn’t cheap, as this function waits for core 1 to finish it’s current task and for any DMAs from flash to complete