summaryrefslogtreecommitdiff
path: root/keyboards/dztech/dz65rgb/dz65rgb.c
diff options
context:
space:
mode:
authorYan-Fa Li <yanfali@gmail.com>2019-10-18 10:32:43 -0700
committerGitHub <noreply@github.com>2019-10-18 10:32:43 -0700
commitde5cadd63669119a6ba83757780dc66bb8f2816c (patch)
tree8492d1b18e6532688c09aec311d590055585497c /keyboards/dztech/dz65rgb/dz65rgb.c
parentf66b2b1f2742e7d782302c5da0b5ee09312c3dc6 (diff)
downloadqmk_firmware-de5cadd63669119a6ba83757780dc66bb8f2816c.tar.gz
qmk_firmware-de5cadd63669119a6ba83757780dc66bb8f2816c.zip
Caps lock indicator moved from keymap (#7070)
- to keyboard so it works in configurator
Diffstat (limited to 'keyboards/dztech/dz65rgb/dz65rgb.c')
-rw-r--r--keyboards/dztech/dz65rgb/dz65rgb.c9
1 files changed, 9 insertions, 0 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);
+ }
+}