mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-10 02:30:07 +00:00
Caps lock indicator moved from keymap (#7070)
- to keyboard so it works in configurator
This commit is contained in:
parent
f66b2b1f27
commit
de5cadd636
2 changed files with 9 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue