feat: lots of apps
This commit is contained in:
@ -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!(
|
||||
|
Reference in New Issue
Block a user