Fix Per Key LED Indicator Callbacks (#18450)
Co-authored-by: Dasky <32983009+daskygit@users.noreply.github.com> Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
@@ -243,7 +243,7 @@ void dynamic_macro_record_end_user(int8_t direction) {
|
||||
}
|
||||
|
||||
// Indicators
|
||||
void rgb_matrix_indicators_user(void) {
|
||||
bool rgb_matrix_indicators_user(void) {
|
||||
if (host_keyboard_led_state().caps_lock || caps_word_enabled) {
|
||||
// Left master
|
||||
rgb_matrix_set_color(3, RGB_RED);
|
||||
@@ -262,6 +262,7 @@ void rgb_matrix_indicators_user(void) {
|
||||
// Right master
|
||||
rgb_matrix_set_color(23, RGB_GREEN);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Quantum keys / Abbreviations
|
||||
|
||||
@@ -65,7 +65,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
|
||||
return true;
|
||||
}
|
||||
|
||||
void rgb_matrix_indicators_user(void) {
|
||||
bool rgb_matrix_indicators_user(void) {
|
||||
led_t led_state = host_keyboard_led_state();
|
||||
|
||||
if (led_state.caps_lock) {
|
||||
@@ -77,4 +77,5 @@ void rgb_matrix_indicators_user(void) {
|
||||
} else {
|
||||
rgb_matrix_set_color(30, 0x00, 0x00, 0x00);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -50,8 +50,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TAB, KC_TRNS, KC_TRNS ),
|
||||
};
|
||||
|
||||
void rgb_matrix_indicators_user(void)
|
||||
{
|
||||
bool rgb_matrix_indicators_user(void) {
|
||||
if (IS_HOST_LED_ON(USB_LED_CAPS_LOCK))
|
||||
{
|
||||
rgb_matrix_set_color(22, 255, 255, 255);
|
||||
@@ -64,4 +63,5 @@ void rgb_matrix_indicators_user(void)
|
||||
{
|
||||
rgb_matrix_set_color(45, 255, 255, 255);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -50,18 +50,15 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TAB, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ),
|
||||
};
|
||||
|
||||
void rgb_matrix_indicators_user(void)
|
||||
{
|
||||
if (IS_HOST_LED_ON(USB_LED_CAPS_LOCK))
|
||||
{
|
||||
rgb_matrix_set_color(22, 255, 255, 255);
|
||||
}
|
||||
if (IS_LAYER_ON(_L1))
|
||||
{
|
||||
rgb_matrix_set_color(46, 255, 255, 255);
|
||||
}
|
||||
if (IS_LAYER_ON(_L2))
|
||||
{
|
||||
rgb_matrix_set_color(45, 255, 255, 255);
|
||||
}
|
||||
}
|
||||
bool rgb_matrix_indicators_user(void) {
|
||||
if (IS_HOST_LED_ON(USB_LED_CAPS_LOCK)) {
|
||||
rgb_matrix_set_color(22, 255, 255, 255);
|
||||
}
|
||||
if (IS_LAYER_ON(_L1)) {
|
||||
rgb_matrix_set_color(46, 255, 255, 255);
|
||||
}
|
||||
if (IS_LAYER_ON(_L2)) {
|
||||
rgb_matrix_set_color(45, 255, 255, 255);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user