-
-
Notifications
You must be signed in to change notification settings - Fork 40.4k
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 forgotten Caps Lock Indicator for Keychron C3 Pro #24887
Conversation
The following defines within both
|
Now that I think about it, there was code related to the defines that I pulled from
Admittedly, I didn't add this in because at the time, I had thought this was a part of Keychron's "factory" boilerplate code that they stick onto to do tasks that could already be done natively in QMK. I can add this back in if this is deemed necessary with how the code is done. |
Co-authored-by: Joel Challis <[email protected]>
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.
Maybe use the enum names to make it clear what the leds are reacting to:
enum layers{
MAC_BASE,
MAC_FN,
WIN_BASE,
WIN_FN,
};
enum layers{
MAC_BASE,
MAC_FN,
WIN_BASE,
WIN_FN,
}; Not feasible since those enums for the layer names are defined in the keymap level, where |
Yeah, was just thinking about this. Another approach would be to put the enum in the c3_pro.h since these values are already assuming that you will have 4 layers where 0 and 2 are assigned to Mac and Win layers. Kind of a hard decision to make. 😊 In my case I don't use a Mac Layer so I repurposed that LED and I only have it light up on a different layer, not on layer 0. Maybe something to put into So probably easier to just assume users will keep the default layers and keep the hard coded values. |
That would already be problematic if someone decides to not have 4 layers exactly (they change it to have more or less than 4 in their
This is a |
Closing this PR as I had not realized the Caps Lock Indicator was already defined in
|
Description
As title. Quickly checked
default_keyboard.c
after compiling for both variants to check their LED indexes for Caps Lock and they are the same for each other.Types of Changes
Issues Fixed or Closed by This PR
Checklist