Add a dimmed heartbeat for the SenseCAP Solar (P1 Pro) white LED in the
repeater firmware, implemented entirely as a SenseCapSolarBoard::loop()
override so no example main.cpp needs to be touched:
- 100 ms pulse every 5 s, dimmed to 10% brightness via hardware PWM
(NRF_PWM0 / HwPWM0, 1 kHz, COUNTERTOP 16000, compare 1600)
- during the 4.9 s off phase the PWM peripheral is stopped (ENABLE=0),
the pin is released (PSEL disconnect) and GPIO 11 is held LOW, so no
HFCLK is demanded between pulses
- on successful application-level "start ota" the PWM is stopped and the
white LED goes steady full-brightness while BLE OTA is advertised;
on failed start the heartbeat keeps blinking
- powerOff() stops/releases the heartbeat PWM before shutting the LED off
- non-blocking millis() timing with wrap-safe unsigned arithmetic
- gated by SENSECAP_SOLAR_WHITE_LED, defined only in the
SenseCap_Solar_repeater PlatformIO env, so the room-server and
companion firmwares sharing this board class are unaffected
No changes to LoRa/repeater forwarding, the blue TX LED, charging LEDs,
GPS, power management, config storage or the bootloader.
What changes
- variants/meshtracker_x1/platformio.ini moves stevemarple/MicroNMEA from the
four environments that listed it into the [MeshTracker_X1] base section, the
way nano_g2_ultra already keeps it, and drops the four copies.
Why
- MeshTracker_X1_kiss_modem was the one environment of this variant that did not
list the library, so it did not build:
src/helpers/sensors/MicroNMEALocationProvider.h:4: fatal error: MicroNMEA.h: No such file or directory
variants/meshtracker_x1/target.cpp includes the location provider
unconditionally and every environment of this variant compiles target.cpp, so
every one of them needs the library. Putting it in the base section makes that
true by construction rather than by repeating the line and hoping none is
forgotten, which is exactly what happened here.
Compatibility
- All five environments of the variant were built, which is the whole reach of this
change. MeshTracker_X1_kiss_modem now builds (text 240180, bss 18236; on unchanged
dev it does not build at all). For the four that already built, text and bss are
byte for byte identical to a build from unchanged dev c9fa617c with the same
toolchain, so inheriting the library instead of listing it changes nothing for
them: MeshTracker_X1_repeater text 299524 bss 32024, _room_server 292020 / 35740,
_companion_radio_usb 316356 / 141000, _companion_radio_ble 322036 / 145432, each
text +0 and bss +0 against dev.
ESP32-S3FH4R2 (4MB flash, 2MB PSRAM, native USB-CDC) with an LR1121.
Pins, the DIO5/DIO6 RF switch table and the 1.8 V TCXO follow the HF
schematic and Waveshare's examples. Envs: repeater, room server,
companion USB/BLE and KISS modem, all on min_spiffs so roles share one
partition layout.
Only RFO_HP_LF is wired (R4 on RFO_LP_LF is not fitted), so the new
opt-in LR1121_FORCE_HP_PA flag keeps RadioLib on the HP PA at <= 14 dBm,
where it would otherwise select the unconnected LP PA.