Add RGB LED and haptic notifications for SenseCAP MeshTracker X1 - #3122
Merged
Conversation
Member
|
Thanks for this. |
Author
|
Small correction after more bench testing on the charge status LED. The charger exposes two status lines and I was giving priority to the second one (P1.4) as a charge complete signal, but on this board it reads low regardless of state, so the LED sat on the charged colour the whole time. Charge state now comes from P1.3 alone, which behaves correctly, and P1.4 is left unused with a note (Meshtastic leaves it out of their X1 variant for the same reason). Verified on hardware: amber while charging at 4.15 V, and all four X1 envs still build clean. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #3112, adding notification and sensor support for the SenseCAP MeshTracker X1's remaining onboard hardware.
RGB status LED (the X1 has a discrete RGB LED on P0.03/P0.24/P0.28):
PIN_STATUS_LED_R/G/Bdefines, so boards with a single status LED keep the stock code path (verified by building t1000e_companion_radio_ble)DRV2605 haptics (LRA motor behind the DRV2605 on I2C):
DRV2605Vibrationhelper with the same interface asGenericVibration, using the register config and effect that Meshtastic ships for this same chipbuzz_q, newvibe_qpref)SPA06-003 barometer:
TELEM_PERM_ENVIRONMENTtelemetry, using the same library and settings as Meshtastic (8x oversampling, 1 Hz continuous so reads never block)Charge status on the LED:
Testing
All verified on real hardware (X1 + phone app + other MeshCore nodes):