Krolyxon
Commit a516e31

Branches

Tags

Refs →

orion-rfsrcuiwidgets.rs

23 lines · 707 B · Rust

1//! Reusable screens drawn with the [`Display`] primitives.
2//!
3//! Coordinates mirror the Arduino reference so the ported UI looks the same.
4
5use crate::drivers::display::Display;
6
7/// Boot splash (parity: `src-arduino/main.cpp` `showSplash`).
8pub fn splash(d: &mut Display) {
9 d.clear();
10 d.title(10, 40, "Orion-RF");
11 d.text(25, 58, "Initializing...");
12 d.flush();
13}
14
15/// Placeholder screen for features not yet ported. Replaced by the real app in
16/// its phase; until then every unimplemented menu entry lands here.
17pub fn stub(d: &mut Display, name: &str) {
18 d.clear();
19 d.text(0, 14, name);
20 d.text(0, 34, "Not implemented");
21 d.text(0, 54, "BACK to return");
22 d.flush();
23}