Repository navigation
Make Wio Tracker L1 joystick pins overridable - #3987
Open
jadonfloyd wants to merge 1 commit into
Open
jadonfloyd wants to merge 1 commit into
jadonfloyd wants to merge 1 commit into
Conversation
Wrap the JOYSTICK_* pin defines in variants/wio-tracker-l1/variant.h in #ifndef guards so builds can remap them with -D flags, e.g. for enclosures that mount the display rotated 90 degrees relative to the joystick. No change to default behavior. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XZSU585Bf7KxVsYxYZyfun
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.
Requested by Jadon · project thread
What
Wraps the
JOYSTICK_UP/DOWN/LEFT/RIGHT/PRESSdefines invariants/wio-tracker-l1/variant.hin#ifndefguards so a build can remap the joystick pins with-Dflags. Defaults are unchanged.This follows @ripplebiz's suggestion on #2185 (simpler alternative to a
JOYSTICK_ROTATIONflag): just make the pin defs overridable.Example
For an enclosure with the display mounted rotated 90° relative to the joystick (up/down should navigate left/right):
Testing
WioTrackerL1Eink_companion_radio_blebuilds stock and with the four flags above (no redefinition warnings). Preprocessedtarget.cppshowsjoystick_left/righton pins 27/28 stock and 26/25 remapped.🤖 Generated with Claude Code
https://claude.ai/code/session_01XZSU585Bf7KxVsYxYZyfun