[esp32] Define BUTTON_PIN (-1) by default, fixes #6213#6371
Merged
caveman99 merged 1 commit intoMar 23, 2025
Conversation
caveman99
requested changes
Mar 23, 2025
Signed-off-by: Andrew Yong <me@ndoo.sg>
2999e15 to
cf491ed
Compare
Contributor
Author
|
I only compile-tested the above change, would appreciate if anyone with access to a T-LoRa V2.1 1.6 could try it out, I will functionality-test it tomorrow otherwise (my hardware is in the office). |
caveman99
approved these changes
Mar 23, 2025
Contributor
|
Hey just a heads up that this is throwing up a bunch of warnings when building for NRF52 |
Contributor
Author
|
Hmm, is there some reason this isn’t being done in the variant files for
nrf52? Or if it is, can this be safely gated behind an #ifndef (or is it
even needed?)
…On Mon, Mar 24, 2025 at 20:15 todd-herbert ***@***.***> wrote:
Hey just a heads up that this is throwing up a bunch of warnings when
building for NRF52
src/platform/nrf52/architecture.h:107: warning: "BUTTON_PIN" redefined
107 | #define BUTTON_PIN PIN_BUTTON1
—
Reply to this email directly, view it on GitHub
<#6371 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACAFAAJXYSVNICXDVGR3XD2V7ZMLAVCNFSM6AAAAABZRTQPS2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONBXHEZDOMRQGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
[image: todd-herbert]*todd-herbert* left a comment
(meshtastic/firmware#6371)
<#6371 (comment)>
Hey just a heads up that this is throwing up a bunch of warnings when
building for NRF52
src/platform/nrf52/architecture.h:107: warning: "BUTTON_PIN" redefined
107 | #define BUTTON_PIN PIN_BUTTON1
—
Reply to this email directly, view it on GitHub
<#6371 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACAFAAJXYSVNICXDVGR3XD2V7ZMLAVCNFSM6AAAAABZRTQPS2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONBXHEZDOMRQGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
fifieldt
added a commit
that referenced
this pull request
Mar 26, 2025
* add TCA8418 to configuration.h added the TCA8418 * add TCA8418 to ScanI2C.cpp add TCA8418 * add TCA8418KB to ScanI2C.h add TCA8418KB * add TCA8418KB ScanI2CTwoWire.cpp add TCA8418KB * Create TCA8418Keyboard.cpp Create TCA8418Keyboard.cpp * Create TCA8418Keyboard.h Create TCA8418Keyboard.h * add TCA8418 to kbI2cBase.cpp add TCA8418 * add TCA8418 to kbI2cBase.h add TCA8418 * add TCA8418KB to main.cpp add TCA8418KB * add TCA8418KB to cardKbI2cImpl.cpp add TCA8418KB * Update TCA8418 kbI2cBase.cpp * enable debug TCA8418 * Nokia 5130 config * Update TCA8418Keyboard.h old version in initial commit * Update ScanI2CTwoWire.cpp * add tap_interval and backlight_on to constructor * Create TCA8418-layouts.cpp TCA8418-layout 3x4 should work Nokia 5130 needs editing. * put layouts in different file + adjusted code for variable matrix sizes * rename TCA8418-layouts.cpp to TCA8418Layouts.cpp + add endif * Update TCA8418Keyboard.cpp name change layouts * forgot a \ * Create TCA8418Layouts.h * Update TCA8418Keyboard.cpp * add include forgot include * Update TCA8418Keyboard.cpp * Update TCA8418Keyboard.h * Update TCA8418Layouts.h * revert to keyboard layout in main TCA8418Keyboard.cpp * fixed the address * changed ordering of constructor * reflect changes #6371 * edit config.h * bug fix fast pressing multiple buttons + clean up scanI2CTwoWire.cpp * trunked --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com> Co-authored-by: Tom Fifield <tom@tomfifield.net>
jeek
pushed a commit
to jeek/Meshtastic-Exploiteers-Hacker-Pager
that referenced
this pull request
Jun 30, 2026
…htastic#6371) Signed-off-by: Andrew Yong <me@ndoo.sg>
jeek
pushed a commit
to jeek/Meshtastic-Exploiteers-Hacker-Pager
that referenced
this pull request
Jun 30, 2026
* add TCA8418 to configuration.h added the TCA8418 * add TCA8418 to ScanI2C.cpp add TCA8418 * add TCA8418KB to ScanI2C.h add TCA8418KB * add TCA8418KB ScanI2CTwoWire.cpp add TCA8418KB * Create TCA8418Keyboard.cpp Create TCA8418Keyboard.cpp * Create TCA8418Keyboard.h Create TCA8418Keyboard.h * add TCA8418 to kbI2cBase.cpp add TCA8418 * add TCA8418 to kbI2cBase.h add TCA8418 * add TCA8418KB to main.cpp add TCA8418KB * add TCA8418KB to cardKbI2cImpl.cpp add TCA8418KB * Update TCA8418 kbI2cBase.cpp * enable debug TCA8418 * Nokia 5130 config * Update TCA8418Keyboard.h old version in initial commit * Update ScanI2CTwoWire.cpp * add tap_interval and backlight_on to constructor * Create TCA8418-layouts.cpp TCA8418-layout 3x4 should work Nokia 5130 needs editing. * put layouts in different file + adjusted code for variable matrix sizes * rename TCA8418-layouts.cpp to TCA8418Layouts.cpp + add endif * Update TCA8418Keyboard.cpp name change layouts * forgot a \ * Create TCA8418Layouts.h * Update TCA8418Keyboard.cpp * add include forgot include * Update TCA8418Keyboard.cpp * Update TCA8418Keyboard.h * Update TCA8418Layouts.h * revert to keyboard layout in main TCA8418Keyboard.cpp * fixed the address * changed ordering of constructor * reflect changes meshtastic#6371 * edit config.h * bug fix fast pressing multiple buttons + clean up scanI2CTwoWire.cpp * trunked --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com> Co-authored-by: Tom Fifield <tom@tomfifield.net>
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.
ESP32 - Define BUTTON_PIN (-1) by default, fixes #6213 because button setup is always done in
firmware/src/main.cpp
Lines 375 to 392 in 1e4a013
firmware/src/ButtonThread.cpp
Lines 31 to 58 in 1e4a013