Repository navigation
ThinkNode M5: hold backlight button to toggle backlight on/off - #4000
Open
shinsterneck wants to merge 3 commits into
Open
shinsterneck wants to merge 3 commits into
shinsterneck wants to merge 3 commits into
Conversation
added 3 commits
November 29, 2026 17:55
Long-pressing BACKLIGHT_BTN (1 s) now latches the backlight on; a second long press releases it. While latched, the backlight ignores ui.backlight_delay. The latch is cleared on display auto-off, on triple-click (display off) and on shutdown, so the backlight pin does not stay lit through power-off. Existing behaviour is unchanged: the backlight still lights while the button is held, and double-click still forces a full e-ink refresh.
BUTTON2 (GPIO14) is active low and needs a pull-up. Without it the pin can float and read as pressed, keeping the backlight on permanently.
Show a short "Backlight: always on" / "Backlight: auto" alert when the long press toggles the latch. When the latch is released, keep the backlight dark until the button is let go. Previously the still-held button re-lit it and restarted the ui.backlight_delay timer, so it flickered and stayed on a few more seconds.
This branch has not been deployed
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
ui.backlight_delayis ignored.companion-newUI, so the M8, M1 and T-Echo get the long-press toggle too. Their existing behaviour (hold to light, double-click refresh, triple-click off) is otherwise unchanged.Testing
ThinkNode_M5_companion_radio_ble)ThinkNode_M5_companion_radio_ble,ThinkNode_M8_companion_radio_ble,Heltec_v3_companion_radio_ble