12 lines
287 B
Rust
12 lines
287 B
Rust
use crate::{display::Display, keypad::KeyEvents, state::ModeState, Context};
|
|
|
|
pub mod clock;
|
|
pub mod dial;
|
|
|
|
pub trait App {
|
|
type AppModeState;
|
|
|
|
/// Return Some if the mode should be changed
|
|
fn update(context: &mut Context, mode_state: &mut Self::AppModeState) -> Option<ModeState>;
|
|
}
|