-
-
Notifications
You must be signed in to change notification settings - Fork 40.7k
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
Port DIRECT_PINS from split_common/matrix.c to matrix.c #5091
Conversation
…matrix.c - fix logic from inherited from split_common
Diodes aren't the defining feature of the wiring system, so it's not really correct to mention them here. Something more like the following would be better: "To configure a keyboard where each switch is connected to a separate pin and ground instead of sharing row and column pins, use |
Other than getting the documentation right, this looks good (although I'm obviously going to say that, having written the original code.) Thanks for doing this! |
There are some merge conflicts here. |
@drashna thanks for the heads up, I have fixed the merge issue. |
Looks like another use case with #5266. |
Staryu also requires this change as it defines the matrix as |
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.
Giving you some love.
* Port DIRECT_PINS from split_common/matrix.c to matrix.c * Reorder matrix.c to remove foward declaration and match split_common/matrix.c * Refactor nano to use DIRECT_PINS * Reorder matrix.c to remove foward declaration and match split_common/matrix.c * Add DIRECT_PINS documentation * Reorder matrix.c to remove foward declaration and match split_common/matrix.c - fix logic from inherited from split_common * Add DIRECT_PINS documentation - review comments
* 'master' of https://github.com/qmk/qmk_firmware: (101 commits) Change table names Cleanup code Make send_char multilined for readaability Clean up some of the code Add AltGr/RALT support to Send String Add vendor and product arguments to atmega32a_program.py - fix hex print Add vendor and product arguments to atmega32a_program.py Max out range for max compatibility Fix ATSAM's USB HID descriptor to support higher heycodes Fix build detection of keymap and board changes Apply MAKEFLAGS to speed up CI Flesh out keymaps and some tweaks to indicators (qmk#5608) add in the missing #defines Update ps2avrgb readme template (qmk#5584) Use DIRECT_PINS for BDN9 (qmk#5603) Port DIRECT_PINS from split_common/matrix.c to matrix.c (qmk#5091) Keyboard: Add yosino58 Keyboard (qmk#5465) fix offset in matrix (qmk#5600) Remove caveat about combos with shared keys (qmk#5601) Revert "Update build instructions and docker file to download submodules" (qmk#5533) ...
Port DIRECT_PINS from split_common/matrix.c to matrix.c (qmk#5091)
* Port DIRECT_PINS from split_common/matrix.c to matrix.c * Reorder matrix.c to remove foward declaration and match split_common/matrix.c * Refactor nano to use DIRECT_PINS * Reorder matrix.c to remove foward declaration and match split_common/matrix.c * Add DIRECT_PINS documentation * Reorder matrix.c to remove foward declaration and match split_common/matrix.c - fix logic from inherited from split_common * Add DIRECT_PINS documentation - review comments
* Port DIRECT_PINS from split_common/matrix.c to matrix.c * Reorder matrix.c to remove foward declaration and match split_common/matrix.c * Refactor nano to use DIRECT_PINS * Reorder matrix.c to remove foward declaration and match split_common/matrix.c * Add DIRECT_PINS documentation * Reorder matrix.c to remove foward declaration and match split_common/matrix.c - fix logic from inherited from split_common * Add DIRECT_PINS documentation - review comments
Description
Discussion within #5026
split_common already contains a method of mapping pins when diodes are not used,
DIRECT_PINS
. This is currently missing from the non splitmatrix.c
.This PR aligns some of the functionality of
matrix.c
andsplit_common/matrix.c
as well as reorders some of the functions to aid diff-ability. Finally i have added docs for theDIRECT_PINS
option.As a review hint, it might help to go via the commit history, as the moving of functions was done after the main functionality was added.
Types of changes
Issues Fixed or Closed by this PR
Checklist: