feat: show MAC address on splash screen

Splash/waiting screen now shows:
  Row 1: "DongLoRa" (bold)
  Row 2: "Board Name vX.Y.Z"
  Row 3: MAC address (XX:XX:XX:XX:XX:XX)
  Row 4: "Waiting for host..."

Each board reads its MAC at init:
- ESP32-S3: efuse MAC via esp_hal::efuse::Efuse::mac_address()
- nRF52840: FICR device address registers

BoardInfo struct bundles name/version/mac to keep dashboard() under
clippy's argument limit.
This commit is contained in:
swaits committed 2026-03-29 21:33:07 -06:00
1 parent 7dc79c1a24
commit d22d2b92ac
5 files changed
+67 -19

No files matched your search

+3 -1
View File
@@ -41,6 +41,7 @@ pub struct UsbParts {
pub struct DisplayParts {
pub i2c: DisplayI2c,
pub mac: [u8; 6],
}
// ── Board init ───────────────────────────────────────────────────────
@@ -130,7 +131,8 @@ impl Board {
.with_sda(p.GPIO17)
.with_scl(p.GPIO18)
.into_async();
let display = Some(DisplayParts { i2c });
let mac = esp_hal::efuse::Efuse::mac_address();
let display = Some(DisplayParts { i2c, mac });
(radio, usb, display)
}