diff options
author | Yan-Fa Li <yanfali@gmail.com> | 2019-10-18 10:32:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-18 10:32:43 -0700 |
commit | de5cadd63669119a6ba83757780dc66bb8f2816c (patch) | |
tree | 8492d1b18e6532688c09aec311d590055585497c /keyboards | |
parent | f66b2b1f2742e7d782302c5da0b5ee09312c3dc6 (diff) |
Caps lock indicator moved from keymap (#7070)
- to keyboard so it works in configurator
Diffstat (limited to 'keyboards')
-rw-r--r-- | keyboards/dztech/dz65rgb/dz65rgb.c | 9 | ||||
-rw-r--r-- | keyboards/dztech/dz65rgb/keymaps/default/keymap.c | 8 |
2 files changed, 9 insertions, 8 deletions
diff --git a/keyboards/dztech/dz65rgb/dz65rgb.c b/keyboards/dztech/dz65rgb/dz65rgb.c index 932d3f68b6..766aea26c4 100644 --- a/keyboards/dztech/dz65rgb/dz65rgb.c +++ b/keyboards/dztech/dz65rgb/dz65rgb.c @@ -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); + } +} diff --git a/keyboards/dztech/dz65rgb/keymaps/default/keymap.c b/keyboards/dztech/dz65rgb/keymaps/default/keymap.c index dae08a48c6..90f25c0e46 100644 --- a/keyboards/dztech/dz65rgb/keymaps/default/keymap.c +++ b/keyboards/dztech/dz65rgb/keymaps/default/keymap.c @@ -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 |