Browse Source

Caps lock indicator moved from keymap (#7070)

- to keyboard so it works in configurator
pull/7480/head
Yan-Fa Li 4 years ago
committed by GitHub
parent
commit
de5cadd636
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 8 deletions
  1. +9
    -0
      keyboards/dztech/dz65rgb/dz65rgb.c
  2. +0
    -8
      keyboards/dztech/dz65rgb/keymaps/default/keymap.c

+ 9
- 0
keyboards/dztech/dz65rgb/dz65rgb.c 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);
}
}

+ 0
- 8
keyboards/dztech/dz65rgb/keymaps/default/keymap.c 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


Loading…
Cancel
Save