Add Lilygo T-Impulse-Plus#10497
Open
vidplace7 wants to merge 26 commits into
Open
Conversation
caveman99
approved these changes
May 18, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds support for the LilyGo T-Impulse-Plus (nRF52840) wristband: SSD1315 OLED, SX1262 LoRa, MIA-M10Q GPS, TTP223 touch button, vibration motor used as notification/haptic feedback, and the SGM41562 I²C charger for input-power/charge-status reporting. Also introduces a small reusable HapticFeedback driver and an SGM41562 charger driver that AnalogBatteryLevel consults for isVbusIn()/isCharging().
Changes:
- New nRF52840 variant (
variants/nrf52840/t-impulse-plus/) plus itsboards/t-impulse-plus.json, with a newHW_VENDORmapping insrc/platform/nrf52/architecture.h. - New
src/power/SGM41562.{h,cpp}charger driver, wired intosrc/Power.cppbehindHAS_SGM41562. - New
src/input/HapticFeedback.{h,cpp}withInputBrokerintegration that emits a short pulse on touch press and an armed long-press pulse onBACKfire.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| variants/nrf52840/t-impulse-plus/variant.h | Pin map, capabilities (display, GPS, SX1262, IMU, charger, haptic), I²C/SPI/QSPI wiring. |
| variants/nrf52840/t-impulse-plus/variant.cpp | g_ADigitalPinMap and initVariant() (QSPI CS high, battery sense enable, RT9080 LDO enable). |
| variants/nrf52840/t-impulse-plus/platformio.ini | New PlatformIO env extending nrf52840_base. Missing the customary custom_meshtastic_* metadata used elsewhere. |
| boards/t-impulse-plus.json | PlatformIO board definition. variant field and missing variants_dir need attention. |
| src/platform/nrf52/architecture.h | Maps the T_IMPULSE_PLUS build flag to HardwareModel_T_IMPULSE_PLUS. |
| src/power/SGM41562.{h,cpp} | I²C driver for the SGM41562 buck charger with cached refresh and ship-mode/charge-enable control. |
| src/Power.cpp | Calls initSGM41562 in Power::setup() and consults the charger for isVbusIn/isCharging. |
| src/input/HapticFeedback.{h,cpp} | Non-blocking GPIO motor pulser using OSThread, with delayed pulse arm/cancel. |
| src/input/InputBroker.cpp | Hooks the haptic driver into the touch button (press pulse + armed long-press pulse). |
Comment on lines
+1
to
+9
| [env:t-impulse-plus] | ||
| extends = nrf52840_base | ||
| board = t-impulse-plus | ||
|
|
||
| build_flags = ${nrf52840_base.build_flags} | ||
| -I variants/nrf52840/t-impulse-plus | ||
| -D T_IMPULSE_PLUS | ||
|
|
||
| build_src_filter = ${nrf52_base.build_src_filter} +<../variants/nrf52840/t-impulse-plus> |
… into t-impulse-plus
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.
Adds support for Lilygo T-Impulse-Plus.
Working:
Not working:
OLED_TINYchanges. This will need some special consideration @HarukiToredaDepends on: