Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions ui-app/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use embedded_graphics::{
text::Text,
};
use heapless::String;
use hex::ToHex;

#[derive(Copy, Clone, Debug, PartialEq, Format)]
pub enum Key {
Expand Down Expand Up @@ -228,20 +227,6 @@ impl App {
// Extinguish the status LED
out.status_led().set_color(Color::Black);

// Read the EEPROM, XOR with 0xFF, write it, then read it back
let mut eeprom_data = [0u8; 256];
out.eeprom().read(&mut eeprom_data);
let hex: heapless::String<1024> = eeprom_data.encode_hex();
defmt::info!("eeprom before {}", hex);

eeprom_data.iter_mut().for_each(|x| *x ^= 0xff);
out.eeprom().write(&eeprom_data);

eeprom_data.fill(0);
out.eeprom().read(&mut eeprom_data);
let hex: heapless::String<1024> = eeprom_data.encode_hex();
defmt::info!("eeprom after {}", hex);

// Draw a test pattern to the screen
let rect = out.screen().bounding_box();

Expand Down
2 changes: 0 additions & 2 deletions ui-stm32/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,9 @@ async fn main(spawner: Spawner) {
debug!("app start");
app.start(&mut board);

/*
// Main event loop
loop {
let event = EVENT_QUEUE.receive().await;
app.handle(event, &mut board);
}
*/
}