Something went wrong. Try again.
Firmware for the b-parasite board, but in Rust.
Something went wrong. Try again.
532 B · 21 lines
Rust
at ci-fix
12345678910111213141516171819202122use embassy_nrf::gpio::Output;use embassy_time::Timer;use sachy_fmt::unwrap;
use crate::state::START_MEASUREMENTS;
#[embassy_executor::task]pub async fn task(mut led: Output<'static>) { let mut indication = unwrap!(START_MEASUREMENTS.receiver());
loop { indication.changed().await; for _ in 0..4 { Timer::after_millis(200).await; led.set_high(); Timer::after_millis(50).await; led.set_low(); Timer::after_millis(250).await; } }}