1
0
Fork 0
forked from forks/qmk_firmware

Caps lock indicator moved from keymap (#7070)

- to keyboard so it works in configurator
This commit is contained in:
Yan-Fa Li 2019-10-18 10:32:43 -07:00 committed by GitHub
parent f66b2b1f27
commit de5cadd636
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 8 deletions

View file

@ -114,3 +114,12 @@ void suspend_wakeup_init_kb(void)
rgb_matrix_set_suspend_state(false);
suspend_wakeup_init_user();
}
__attribute__ ((weak))
void rgb_matrix_indicators_user(void)
{
if (IS_LED_ON(host_keyboard_leds(), USB_LED_CAPS_LOCK))
{
rgb_matrix_set_color(8, 0xFF, 0xFF, 0xFF);
}
}

View file

@ -16,14 +16,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPRV, KC_VOLD, KC_MNXT),
};
void rgb_matrix_indicators_user(void)
{
if (IS_LED_ON(host_keyboard_leds(), USB_LED_CAPS_LOCK))
{
rgb_matrix_set_color(8, 0xFF, 0xFF, 0xFF);
}
}
void matrix_init_user(void)
{
//user initialization