can load & reload programs

This commit is contained in:
2025-09-18 16:25:24 -06:00
parent 1cd0d292fe
commit 39abe19fd3
2 changed files with 18 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ use crate::{
};
use alloc::{str::FromStr, string::String, vec::Vec};
use embassy_sync::{blocking_mutex::raw::CriticalSectionRawMutex, mutex::Mutex};
use embassy_time::Timer;
use embedded_graphics::{
Drawable,
mono_font::{MonoTextStyle, ascii::FONT_9X15},
@@ -55,6 +56,8 @@ pub async fn ui_handler() {
clear_selection().await;
draw_selection().await;
}
Timer::after_millis(50).await;
}
}
@@ -146,6 +149,10 @@ impl SelectionList {
}
}
pub fn set_changed(&mut self, changed: bool) {
self.changed = changed
}
pub fn update_selections(&mut self, selections: Vec<FileName>) {
self.selections = selections;
self.changed = true;