-
-
Notifications
You must be signed in to change notification settings - Fork 39.9k
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
[Keyboard] Use DIRECT_PINS instead of empty MATRIX_ROW_PINS: sixshooter #8130
Conversation
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.
You could map the direct pins more like the physical layout like:
https://github.com/qmk/qmk_firmware/blob/master/keyboards/keebio/bdn9/config.h#L35 and https://github.com/qmk/qmk_firmware/blob/master/keyboards/keebio/bdn9/bdn9.h#L28
I don’t think that’s necessary when there is only a single row. |
The single row way was a hangover from before DIRECT_PINS existed. |
I got what you mean. |
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.
Perfect, thanks for that
…er (qmk#8130) * [Keyboard] Use DIRECT_PINS instead of empty MATRIX_ROW_PINS: sixshooter * [Keyboard] Reform the matrix into 2x3: sixshooter
…er (qmk#8130) * [Keyboard] Use DIRECT_PINS instead of empty MATRIX_ROW_PINS: sixshooter * [Keyboard] Reform the matrix into 2x3: sixshooter
…er (qmk#8130) * [Keyboard] Use DIRECT_PINS instead of empty MATRIX_ROW_PINS: sixshooter * [Keyboard] Reform the matrix into 2x3: sixshooter
…er (qmk#8130) * [Keyboard] Use DIRECT_PINS instead of empty MATRIX_ROW_PINS: sixshooter * [Keyboard] Reform the matrix into 2x3: sixshooter
Description
In the config.h of sixshooter, it has been defined as following.
#define MATRIX_ROWS 1
#define MATRIX_ROW_PINS { }
This is a potential bug because by definition row_pins will get assigned undefined value.
In this case use of DIRECT_PINS is appropriate.
Similar to #8115, I need this consistency for my next PR.
Types of Changes
Checklist