-
-
Notifications
You must be signed in to change notification settings - Fork 39.8k
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
Adding encoder-enabled Lily58 keymap #9382
Conversation
#ifdef RGBLIGHT_ENABLE | ||
//Following line allows macro to read current RGB settings | ||
extern rgblight_config_t rgblight_config; | ||
#endif |
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 shouldn't be needed anymore, as there are functions to check all of the rgb config settings, and to write to them.
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 never responded to this. I don't think I'll be making that change since it would require touching all the keymaps and changing how the value is read in lib/rgb_state_reader.c, and that is enough effort to warrant a separate PR.
Thank you for your contribution! |
Thank you for your contribution! |
#ifdef PROTOCOL_LUFA | ||
#include "lufa.h" | ||
#include "split_util.h" | ||
#endif | ||
#ifdef SSD1306OLED | ||
#include "ssd1306.h" | ||
#endif | ||
|
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.
#ifdef PROTOCOL_LUFA | |
#include "lufa.h" | |
#include "split_util.h" | |
#endif | |
#ifdef SSD1306OLED | |
#include "ssd1306.h" | |
#endif |
Fairly sure this block isn't needed.
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.
It's in the original default keymap. If it should be removed from there, then I feel like that should be batched into a separate PR instead of in this one.
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.
It should be removed there, as well, but that would be a separate PR, ideally.
As in, for all the default keymaps that do this.
However, replicating the "bad code" should be avoided, as well.
Co-authored-by: Ryan <[email protected]>
I'm going to go ahead and close this since I keep getting feedback for changes that aren't directly related to this keymap, and I'm frustrated with the gatekeeping needed for just a layout with additional options enabled. |
There is an unofficial hardware variant of the Lily58 that supports a rotary encoder. Keyhive is one vendor that supplies them: https://keyhive.xyz/shop/lily58
Description
This change adds a keymap based on the default one that enables encoder support. I initially wanted to make it a separate rev (as recommended in #8900) but couldn't make any sense of the build errors. I'd be happy to move stuff around but I'm more interested in just making it work.
I tested this with the current master of qmk on a Lily58, with the rotary encoder on the left side.
Types of Changes
Checklist