From 0a69225637ab488e3dd7d01a21763f20aab4bc81 Mon Sep 17 00:00:00 2001 From: moyi4681 Date: Thu, 8 Oct 2020 04:48:30 +0800 Subject: [PATCH] [Keyboard] add maja capslock indicator (#10151) * add maja capslock indicator add maja capslock indicator * Update keyboards/kbdfans/maja/maja.c Co-authored-by: Ryan Co-authored-by: Ryan --- keyboards/kbdfans/maja/maja.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/keyboards/kbdfans/maja/maja.c b/keyboards/kbdfans/maja/maja.c index 545d8c46e2c..a0afcbda8a2 100755 --- a/keyboards/kbdfans/maja/maja.c +++ b/keyboards/kbdfans/maja/maja.c @@ -102,3 +102,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 (host_keyboard_led_state().caps_lock) + { + rgb_matrix_set_color(30, 0xFF, 0xFF, 0xFF); + } +}