mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-01 10:21:59 +00:00
Settings > Messages > Keep messages (Off, 500, 1000, 2500 in all; off by default; HIST_FLASH, ui-core/HistoryLog.h). Two append-only logs on the QSPI flash, channels and DMs, restored into the RAM rings at the start. A batch is written a minute after the first unsaved change and at shutdown, as the L1's power switch gives no warning. Each segment has a directory of its own: a LittleFS 1.x commit erases one of a directory's two fixed blocks every time. E-ink panels keep their last frame, so a shutdown now leaves "Powered off" on it and puts the controller into deep sleep. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
26 lines
1.4 KiB
INI
26 lines
1.4 KiB
INI
; Solo build for Seeed Wio Tracker L1 (OLED) -- extends WioTrackerL1CompanionDual,
|
|
; defined in variants/wio-tracker-l1/platformio.ini. Solo configs live in their
|
|
; own top-level solo/ folder, separate from the shared upstream board variants
|
|
; in variants/, so this repo's Solo-specific additions don't get mixed in with
|
|
; configs other MeshCore forks/upstream also carry.
|
|
;
|
|
[env:WioTrackerL1_companion_solo_dual]
|
|
extends = WioTrackerL1CompanionDual
|
|
; Optimise for size, not speed: the nRF52 Arduino core defaults to -Ofast
|
|
; (≈ -O3 + -ffast-math), which bloats flash by ~200 KB on this feature-rich
|
|
; solo build. -Os keeps every feature, fits comfortably, and is actually safer
|
|
; for float (no fast-math reassociation). Speed is irrelevant for the UI/mesh.
|
|
; The offline queue (messages held for the phone app while it's away) at 128,
|
|
; not the board's 256: on the nRF52 the 256 x 177 B left ~5 KB of heap next to
|
|
; the on-device UI (which keeps its own history), too little for a sign buffer.
|
|
build_unflags = -Ofast -D OFFLINE_QUEUE_SIZE=256
|
|
build_flags = ${WioTrackerL1CompanionDual.build_flags}
|
|
-D OFFLINE_QUEUE_SIZE=128
|
|
-D UI_HAS_JOYSTICK_UPDOWN=1
|
|
-D ENABLE_SCREENSHOT
|
|
-D DUAL_SERIAL=1
|
|
-D GPS_SKYVIEW ; Tools > Satellites (helpers/sensors/GpsSky.h)
|
|
-D HIST_FLASH ; Settings > Messages > Keep messages (ui-core/HistoryLog.h)
|
|
-Os
|
|
extra_scripts = post:create-uf2.py
|