Created
April 7, 2026 16:27
-
-
Save agrif/cdac8c4261ae5117626903c657fd82de to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #[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