Skip to content

Instantly share code, notes, and snippets.

@agrif
Created April 7, 2026 16:27
Show Gist options
  • Select an option

  • Save agrif/cdac8c4261ae5117626903c657fd82de to your computer and use it in GitHub Desktop.

Select an option

Save agrif/cdac8c4261ae5117626903c657fd82de to your computer and use it in GitHub Desktop.
#[embassy_executor::task]
pub async fn ui_task() -> ! {
let mut temperature = defmt::unwrap!(RateLimit::new(&TEMPERATURE, TEMP_RATE));
let intro = Text::from_str("Hello").scroll();
let duration = intro.scroll_duration();
TEXT.signal(intro);
Timer::after(duration).await;
loop {
let temp = temperature.changed().await;
let text = Text::from_dc(temp.cooked.plate_dc);
TEXT.signal(text);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment