-
-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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 modifier state to the split keyboard transport #10400
Conversation
I have incorporated all the suggested changes into my PR. |
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.
Some slight cosmetic fixes.
I think i've now addressed the above comments. |
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.
Given this will change the scan rate a fair bit, this change should be optional, opt-in rather than out. That way boards which have zero reason to use the data, no oled etc, can remain as fast as they used to be.
The added code is now behind a define to make it opt-in. |
Also, could you add documentation for this. It doesn't need to be extensive, but it should be documented. |
I have documented the define under communication options on this page and made mention that it of cosmetic use and may impact the matrix scan rate if enabled per zvecr's earlier comment in this PR. |
@cwebster2 looks like this needs a rebase, sorry. |
I will take care of that later today. |
@fauxpark I have rebased my branch against qmk/develop |
@zvecr this has probably fallen off the radar, but wondering if your change request has been satisfied and it this is ready to merge. |
I've rebased this PR against develop yet again, but squashed it into a single commit this time. Out of curiosity, what workflow is in use in this branch that results in this frequent history rewriting? |
This adds modifier state to the i2c and serial transport for split keyboards. The purpose of this is to allow e.g. displaying modifier state on the slave side of a split keyboard on an oled. This adds one byte to the data transferred between halves. This also fixes a missing ifdef guard for BLACKLIGHT_ENABLE. Break modifiers into real/weak/oneshot Fix incorrect slave serial mod setting Fix typo in serial weal mod setter Fix build errors for the I2C code that I introduced Code cleanup and formatting per project preferences Correctly get oneshot mods Fix missing braces Remove unneeded ifdef guard Make the added state transport optional Add documentation for the new define to enable this feature Fix stray grave mark
* Add modifier state to the split transport This adds modifier state to the i2c and serial transport for split keyboards. The purpose of this is to allow e.g. displaying modifier state on the slave side of a split keyboard on an oled. This adds one byte to the data transferred between halves. This also fixes a missing ifdef guard for BLACKLIGHT_ENABLE. Break modifiers into real/weak/oneshot Fix incorrect slave serial mod setting Fix typo in serial weal mod setter Fix build errors for the I2C code that I introduced Code cleanup and formatting per project preferences Correctly get oneshot mods Fix missing braces Remove unneeded ifdef guard Make the added state transport optional Add documentation for the new define to enable this feature Fix stray grave mark * Fix error introduced in conflict resolution
Description
This adds modifier state to the i2c and serial transport for split
keyboards. The purpose of this is to allow e.g. displaying modifier
state on the slave side of a split keyboard on an oled. This adds two
or three bytes to the data transferred between split halves.
This also fixes a missing ifdef guard for BACKLIGHT_ENABLE.
Types of Changes
Checklist