Merge PR #26: add M5Stack Cardputer-Adv support
Integrate mjgodat's keyboard/display Companion, USB Companion, Repeater and Room Server support for Cardputer-Adv with Cap LoRa-1262. Fix UI retry dispatch and ACK ownership, packet/storage bounds, numeric input validation, sparse channel selection, optional-display shutdown, keyboard layout limits, reserved GPIOs and Windows cross-drive includes. Retain all 350 contacts and queue capacity using the existing contact cache; account for the custom UI's runtime allocations in the RAM admission gate. Carry the MultiMote and DejaVu notices with firmware packages and add CI coverage for all four board roles plus the shared T-Deck Companion. Validation: all four Cardputer roles and the T-Deck BLE Companion build; Cardputer sanitizer, UI, layout, ownership, licensing and storage tests; 65 RAM-policy tests and 14 contact-cache tests. PlatformIO ran serially. PR: https://github.com/mikecarper/MeshCore/pull/26
This commit is contained in:
commit
64a068506b
76 files changed
+27802
-4
No files matched your search
@@ -207,6 +207,22 @@ def requirements(platform, defines, target):
|
||||
else:
|
||||
raise ValueError(f"add a runtime allocation budget for display {display!r}")
|
||||
parts = {}
|
||||
if integer(defines, "CARDPUTER_ADV_UI", 0):
|
||||
if platform != "ESP32_PLATFORM" or not companion:
|
||||
raise ValueError("Cardputer UI budget requires an ESP32 Companion")
|
||||
# LovyanGFX renders directly to the panel, without a full RGB canvas.
|
||||
# One loaded VLW font retains five metadata arrays (9 bytes/glyph),
|
||||
# at most 716 glyphs. Old font metadata is freed on a text-size change.
|
||||
parts["cardputer_font_metadata"] = 8192
|
||||
# The source bounds all twelve screen/page objects to 8 KiB. Retain
|
||||
# another 4 KiB for their bounded strings and allocation metadata.
|
||||
parts["cardputer_ui_objects_and_strings"] = 12288
|
||||
# Two optional keyboard layouts, each with at most 32 unique masks,
|
||||
# plus one replacement candidate and allocation metadata (< 22 KiB).
|
||||
parts["cardputer_keyboard_layouts"] = 22528
|
||||
# Private I2C, optional SD, direct SPI DMA/driver state and I2S audio
|
||||
# coexist with the UI. Keep this additive to existing core reserves.
|
||||
parts["cardputer_io_drivers"] = 16384
|
||||
if display == "WioTrackerL2Display":
|
||||
# The pinned LGFX QSPI bus has two DMA flip buffers. RGB565 conversion
|
||||
# requests at most 2048 bytes each (2304 for RGB888); shrinking can
|
||||
|
||||
Reference in new issue
Block a user