-
-
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
Add new function for encode module #16954
Conversation
Core changes should be separate to keyboard changes. |
We added a new function to encoder.h and encoder.c, which is only invoked by Q2, and it won't break anything, why do we need to separate it? It's kinda wierd if we just add a single function, maybe someone would ask how to use it to fix this issue. |
Because that is the process we ask people to follow, as it allows us manage the project easier. By default core changes also have to go via develop, so i have updated the merge target (this is within the PR checklist). |
This change no longer works properly - it causes the rotary encoder to stop functioning altogether. This is due to the new if-condition at https://github.com/qmk/qmk_firmware/blob/master/quantum/encoder.c#L197, introduced in #16068. It prevents the encoder from triggering an action when this code path does not detect a state change - this will almost always be the case since |
Thank you for your contribution! |
Thank you for your contribution! |
Any updates on this? Is it still relevant? @lokher |
@@ -20,7 +20,8 @@ ENCODER_ENABLE = yes # Enable Encoder | |||
DIP_SWITCH_ENABLE = yes | |||
RGB_MATRIX_ENABLE = yes | |||
RGB_MATRIX_DRIVER = CKLED2001 | |||
EEPROM_DRIVER = i2c | |||
# EEPROM_DRIVER = i2c |
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.
Why this change?
This would remove any eeprom support from the board and make via support useless.
Thank you for your contribution! |
@@ -40,6 +40,7 @@ extern volatile bool isLeftHand; | |||
|
|||
static pin_t encoders_pad_a[NUM_ENCODERS_MAX_PER_SIDE] = ENCODERS_PAD_A; | |||
static pin_t encoders_pad_b[NUM_ENCODERS_MAX_PER_SIDE] = ENCODERS_PAD_B; | |||
static bool encoder_external_update[NUM_ENCODERS] = {false}; |
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.
This is set-only and never consulted.
As far as I can tell the issue raised by @FWest98 has not been addressed as a result, suggest revisiting this before it goes stale again.
Thank you for your contribution! |
We'll be moving towards a decoupled model with |
Improved encoder
Description
Types of Changes
Issues Fixed or Closed by This PR
Checklist