-
-
Notifications
You must be signed in to change notification settings - Fork 39.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix data-driven split handedness pin assignement #18254
Conversation
The more important question is why The handedness configuration should probably look like this: "split": {
"side_detection": {
"method": "pin",
"pin": "GP4",
"low_side": "left"
}
} "split": {
"side_detection": {
"method": "matrix_grid",
"matrix_grid": ["GP4", "GP10"],
"low_side": "left"
}
} "split": {
"side_detection": {
"method": "eeprom"
}
} "split": {
"side_detection": {
"method": "main_status",
"main_side": "left"
}
} To avoid confusing defaults, we could make the |
1ac11f5
to
cd83d86
Compare
Thanks @sigprof - this makes way more sense! I've pushed the changes - with small changes to your proposed naming. And I think I got away with all the LOW/HIGH default handling without too much issues - please verify. |
0bb7fcb
to
3d3977f
Compare
0ab72e0
to
8940e89
Compare
30f4400
to
6bfeaa2
Compare
6bfeaa2
to
c8884c2
Compare
There's been some further discussion on discord with no resolution. Quick recap is I'd like to see the options renamed with "split": {
"handedness": {
"method": "pin|matrix_grid|eeprom|usb",
"pin": "GP1",
"matrix_grid": ["GP1", "GP2"],
"active_low": "left|right",
"usb_side": "left|right"
}
} |
f2655e2
to
81217fd
Compare
00aa140
to
29f94ab
Compare
rebased and fixed conflicts since recent develop merges. @fauxpark I believe I addressed you requested changes - let me know If I missed something! |
29f94ab
to
2f203a1
Compare
Seems a bit of discussion on the implementation vs the proposal here happened on discord, without resolution. Ive added the q2 label as a reminder to start discussions again when the current cycle is complete. |
Thank you for your contribution! |
bump - please assign awaiting review label, or close directly. |
60bac55
to
3f4efa1
Compare
Closing as I plan to re-implement based on the current state of the repo. |
Description
(updated PR description based on changes from discussion)
This PR fixes a number of issues with the current data-driven configuration for split handedness detection:
split.primary
andsplit.main
. The generator forconfig.h
was looking for aprimary
key, the but jsonschema andinfo.py
only usedmain
.matrix_grid
config was incorrectly generated with additional{ }
aroundGP1,GP2
pin pairsmain
/primary
- which has nothing to do with detecting which side we are onThis PR marks the old json object
split.main
as deprecated while remaining a backwards compatible jsonschema, and introduces a new object for side detection:This PR brings the config generation, the info command, and the only existing usage of the now deprecated data-driven config in line with the new
side_detection
schema and handles the conversion of old to new options.This data-driven config maps to the following config.h keys:
Types of Changes
Checklist