-
-
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
Fix id67 RGB Matrix #16916
Fix id67 RGB Matrix #16916
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,15 +121,15 @@ void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { | |
|
||
if (host_keyboard_led_state().caps_lock) { | ||
if (isRGBOff) { | ||
rgb_matrix_set_color(ID67_CAPS_LOCK_KEY_INDEX, v, v, v); // white | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. line 85 of this file should contain:
this value is specific to this keymap ... not sure how it ended up in root file There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, sorry. I suppose I was thrown off by this comment There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. np. it's confusing as heck. i had to retest my assumptions twice to confirm what i'd written a few months back. and hey! thanks for trying to fix it - i was slow to see that it was posted and didn't check anyway. by the time i realised you'd already pr'ed it. no foul and the community thanks you for your contributions! |
||
rgb_matrix_set_color(23, v, v, v); // white | ||
} else { | ||
// Caps Lock key/LED | ||
if (timer_elapsed(recording_timer) > 500) { | ||
isCapsBlink = !isCapsBlink; | ||
recording_timer = timer_read(); | ||
} | ||
if (isCapsBlink) { | ||
rgb_matrix_set_color(ID67_CAPS_LOCK_KEY_INDEX, v, v, v); // white | ||
rgb_matrix_set_color(23, v, v, v); // white | ||
} | ||
|
||
// Alpha keys/LEDs | ||
|
@@ -144,15 +144,15 @@ void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { | |
uint8_t g = 0; | ||
uint8_t b = 0; | ||
|
||
if ((g_led_config.flags[ID67_CAPS_LOCK_KEY_INDEX] & LED_FLAG_LAYER_IND) != 0) { | ||
if ((g_led_config.flags[23] & LED_FLAG_LAYER_IND) != 0) { | ||
switch (current_layer) { | ||
case LAYER_1: b = v; break; // blue | ||
case LAYER_2: g = v; break; // green | ||
case LAYER_3: r = v; break; // red | ||
} | ||
} | ||
|
||
rgb_matrix_set_color(ID67_CAPS_LOCK_KEY_INDEX, r, g, b); // off | ||
rgb_matrix_set_color(23, r, g, b); // off | ||
} | ||
|
||
// Layer indicator stuff | ||
|
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 entire function should be removed
g_led_config