Skip to content

Commit fc035f6

Browse files
authored
Merge pull request #151 from Quicr/cleanup-eeprom
Clean up EEPROM demo code
2 parents 4b02c10 + 816ed3b commit fc035f6

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

ui-app/src/lib.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ use embedded_graphics::{
1212
text::Text,
1313
};
1414
use heapless::String;
15-
use hex::ToHex;
1615

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

231-
// Read the EEPROM, XOR with 0xFF, write it, then read it back
232-
let mut eeprom_data = [0u8; 256];
233-
out.eeprom().read(&mut eeprom_data);
234-
let hex: heapless::String<1024> = eeprom_data.encode_hex();
235-
defmt::info!("eeprom before {}", hex);
236-
237-
eeprom_data.iter_mut().for_each(|x| *x ^= 0xff);
238-
out.eeprom().write(&eeprom_data);
239-
240-
eeprom_data.fill(0);
241-
out.eeprom().read(&mut eeprom_data);
242-
let hex: heapless::String<1024> = eeprom_data.encode_hex();
243-
defmt::info!("eeprom after {}", hex);
244-
245230
// Draw a test pattern to the screen
246231
let rect = out.screen().bounding_box();
247232

ui-stm32/src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,9 @@ async fn main(spawner: Spawner) {
9999
debug!("app start");
100100
app.start(&mut board);
101101

102-
/*
103102
// Main event loop
104103
loop {
105104
let event = EVENT_QUEUE.receive().await;
106105
app.handle(event, &mut board);
107106
}
108-
*/
109107
}

0 commit comments

Comments
 (0)