Skip to content

Fix: Enable touch-to-backlight on T-Echo (not just T-Echo Plus)#9953

Merged
thebentern merged 2 commits into
meshtastic:developfrom
okturan:fix/t-echo-touch-backlight
Mar 22, 2026
Merged

Fix: Enable touch-to-backlight on T-Echo (not just T-Echo Plus)#9953
thebentern merged 2 commits into
meshtastic:developfrom
okturan:fix/t-echo-touch-backlight

Conversation

@okturan

@okturan okturan commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

Fixes #7630

The touch-to-backlight feature was gated behind TTGO_T_ECHO_PLUS, but the
regular T-Echo has the same backlight pin (PIN_EINK_EN, P1.11). This meant
the capacitive touch button did nothing useful on BaseUI for non-Plus T-Echo
devices.

This changes the guard from defined(TTGO_T_ECHO_PLUS) && defined(PIN_EINK_EN)
to just defined(PIN_EINK_EN), so any device with an e-ink backlight pin gets
the feature.

InkHUD already drives this pin on the regular T-Echo without issues.

Tested on a LilyGo T-Echo v1 with BaseUI.

🤝 Attestations

  • I have tested that my proposed changes behave as described.
  • I have tested that my proposed changes do not cause any obvious regressions on the following devices:
    • Heltec (Lora32) V3
    • LilyGo T-Deck
    • LilyGo T-Beam
    • RAK WisBlock 4631
    • Seeed Studio T-1000E tracker card
    • Other (please specify below)
    • LilyGo T-Echo v1

The touch-to-backlight feature was gated behind TTGO_T_ECHO_PLUS, but
the regular T-Echo has the same backlight pin (PIN_EINK_EN, P1.11).
This changes the guard to use PIN_EINK_EN only, so any device with an
e-ink backlight pin gets the feature.

Fixes meshtastic#7630
@github-actions

Copy link
Copy Markdown
Contributor

@okturan, Welcome to Meshtastic!

Thanks for opening your first pull request. We really appreciate it.

We discuss work as a team in discord, please join us in the #firmware channel.
There's a big backlog of patches at the moment. If you have time,
please help us with some code review and testing of other PRs!

Welcome to the team 😄

@github-actions github-actions Bot added first-contribution hardware-support Hardware related: new devices or modules, problems specific to hardware labels Mar 19, 2026
@CLAassistant

CLAassistant commented Mar 19, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@thebentern thebentern requested a review from Copilot March 19, 2026 19:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes BaseUI’s touch-to-backlight behavior on the standard LilyGo T-Echo by removing an overly-specific compile-time guard that limited the feature to TTGO_T_ECHO_PLUS, even though the non-Plus T-Echo exposes the same e-ink backlight enable pin (PIN_EINK_EN).

Changes:

  • Expand touch-to-backlight enablement from TTGO_T_ECHO_PLUS && PIN_EINK_EN to any build that defines PIN_EINK_EN.
  • Update the inline comment to reflect the broader condition (“devices with e-ink backlight pin”).

@thebentern thebentern merged commit f982b58 into meshtastic:develop Mar 22, 2026
77 checks passed
thebentern added a commit that referenced this pull request Mar 22, 2026
The touch-to-backlight feature was gated behind TTGO_T_ECHO_PLUS, but
the regular T-Echo has the same backlight pin (PIN_EINK_EN, P1.11).
This changes the guard to use PIN_EINK_EN only, so any device with an
e-ink backlight pin gets the feature.

Fixes #7630

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
jeek pushed a commit to jeek/Meshtastic-Exploiteers-Hacker-Pager that referenced this pull request Jun 30, 2026
…tastic#9953)

The touch-to-backlight feature was gated behind TTGO_T_ECHO_PLUS, but
the regular T-Echo has the same backlight pin (PIN_EINK_EN, P1.11).
This changes the guard to use PIN_EINK_EN only, so any device with an
e-ink backlight pin gets the feature.

Fixes meshtastic#7630

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

first-contribution hardware-support Hardware related: new devices or modules, problems specific to hardware

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: T-Echo (w/ BME280) - Display backlight not working

4 participants