| 1 | //! Reusable screens drawn with the [`Display`] primitives. |
| 2 | //! |
| 3 | //! Coordinates mirror the Arduino reference so the ported UI looks the same. |
| 4 | |
| 5 | use crate::drivers::display::Display; |
| 6 | |
| 7 | /// Boot splash (parity: `src-arduino/main.cpp` `showSplash`). |
| 8 | pub 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. |
| 17 | pub 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 | } |