-
-
Notifications
You must be signed in to change notification settings - Fork 40.4k
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
Made it possible for real to choose register on io expander for cols and rows #6124
Conversation
@@ -36,7 +36,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
#define COL_EXPANDED { true, true, true, true, true, true, false, false, false, false, false, false} | |||
#define MATRIX_ONBOARD_ROW_PINS { F0, F1, F4, F5, F6, F7 } | |||
#define MATRIX_ONBOARD_COL_PINS { 0, 0, 0, 0, 0, 0, B1, B2, B3, D2, D3, C6 } | |||
#define EXPANDER_COL_REGISTER 0 | |||
#define EXPANDER_COL_REGISTER GPIOA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yeah, way better!
+-------+---------------+---------------+ | ||
*/ | ||
|
||
#if (EXPANDER_COLUMN_REGISTER == 0) | ||
#if (EXPANDER_COL_REGISTER == GPIOA) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Geez, I really wrote half of this feature and committed it without any testing, huh?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess so :) Apart from this little typo, you've done a great job and it's a joy working with an expander thanks to your code! To be honest I haven't done any serious testing with the cols on A and rows on B, but in theory it should work.
Oh man, this is close to be merged into core.... |
…r for cols and rows (qmk#6124) * Replace deprecated EXPANDER_MASK with dynamic expander_pin_input_mask * Made it possible to switch rows and cols registers on expander
…r for cols and rows (qmk#6124) * Replace deprecated EXPANDER_MASK with dynamic expander_pin_input_mask * Made it possible to switch rows and cols registers on expander
…r for cols and rows (qmk#6124) * Replace deprecated EXPANDER_MASK with dynamic expander_pin_input_mask * Made it possible to switch rows and cols registers on expander
…r for cols and rows (qmk#6124) * Replace deprecated EXPANDER_MASK with dynamic expander_pin_input_mask * Made it possible to switch rows and cols registers on expander
…r for cols and rows (qmk#6124) * Replace deprecated EXPANDER_MASK with dynamic expander_pin_input_mask * Made it possible to switch rows and cols registers on expander
Description
@ErinCall has made a huge effort to generalize matrix.c for io expander keyboards in #2065. When I tried to put the columns on register B on the io expander I just couldn't get it to work, so I dug into the code. This pretty simple fix solves the issues I faced, and IMHO brings a little bit more clarity to what's going on.
Types of Changes
Issues Fixed or Closed by This PR
Checklist