feat(rak3401): AIN1 button for status screen and shutdown#2414
feat(rak3401): AIN1 button for status screen and shutdown#2414dorfman2 wants to merge 2 commits into
Conversation
How it works:
Why it matters:
For this PR, the defaults stay at 3000/4200 so nothing changes for existing users. Any board variant can override via a single build flag line. |
Align SF value directly next to its label and combine CR label+value into a single right-aligned string. Produces consistent spacing regardless of SF/CR digit counts.
8482a09 to
71ae783
Compare
|
Follow-up: dropped the battery threshold build flags Why: the CLI already exposes runtime tuning for the battery reading, so a compile-time override was duplicating existing functionality. From the MeshCore CLI docs: Fine-tune the battery reading
Net change on the branch:
The AIN1 button feature itself is untouched. |
|
@ripplebiz Wanted to check back in on merging this. If you don't think it's helpful, I can close this. |



AIN1 Button for Status Screen and Shutdown (RAK3401) 🤖🤖
Adds physical button support on AIN1 (pin 31) for the RAK3401 1W repeater, designed for use with a 3D printed portable case that incorporates an Omron-style limit switch as a user button.
Button Actions
Screenshots
UI Changes
isExternalPowered()Hardware Changes
PIN_USER_BTN_ANA=31build flag forRAK_3401_repeaterpowerOff()override onRAK3401Boarddelegating toinitiateShutdown(SHUTDOWN_REASON_USER)Notes
digitalReadinstead ofanalogRead— nRF52 SAADC disconnectsINPUT_PULLUPduring conversionexamples/simple_repeater/UITask.*which affects all repeater variantsCase Design
https://www.printables.com/model/1627139-case-for-rak-wisblock-1-watt-starter-kit
Made as a portable case for the RAK Wisblock 1 Watt starter kit. This case accommodates a very large battery (10000mAh or 15000mAh, 60mm x 110mm x 10mm) and incorporates a standard 128x64 OLED screen, standard micro toggle for power, an Omron style limit switch for user button, and two SMA antenna holes.