Skip to content

Commit

Permalink
Early display of splash screen
Browse files Browse the repository at this point in the history
  • Loading branch information
zargony committed Aug 26, 2024
1 parent 6ab898e commit 39cc6ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion firmware/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,12 @@ async fn main(_spawner: Spawner) {

// Initialize display
let display_i2c = RefCellDevice::new(&i2c);
let display = match display::Display::new(display_i2c, 0x3c) {
let mut display = match display::Display::new(display_i2c, 0x3c) {
Ok(disp) => disp,
// Panic on failure since without a display there's no reasonable way to tell the user
Err(err) => panic!("Display initialization failed: {:?}", err),
};
let _ = display.screen(&screen::Splash);

// Initialize keypad
let keypad = keypad::Keypad::new(
Expand Down

0 comments on commit 39cc6ae

Please sign in to comment.