feat: lots of apps

This commit is contained in:
2024-11-14 16:27:07 +01:00
parent 3d7e506dd5
commit 76f5c9f997
4 changed files with 767 additions and 2 deletions

View File

@ -219,11 +219,12 @@ async fn main(spawner: Spawner) {
.ok();
ui.add_horizontal(Button::new("Works!").smartstate(sm.next()));
ui.add(Button::new("And pretty nicely!").smartstate(sm.next()));
rtc.rwdt.feed();
let end_time = embassy_time::Instant::now();
let draw_time = display.get_time();
let prep_time = start_draw_time - start_time;
let proc_time = embassy_time::Instant::now() - start_draw_time;
let proc_time = end_time - start_draw_time;
let proc_time = proc_time - min(draw_time, proc_time);
rtc.rwdt.feed();
if draw_time.as_micros() > 0 {
println!(