aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar moyi4681 <moyi4681@users.noreply.github.com>2020-10-08 04:48:30 +0800
committerGravatar GitHub <noreply@github.com>2020-10-07 13:48:30 -0700
commit0a69225637ab488e3dd7d01a21763f20aab4bc81 (patch)
tree9fd5f8904c8ce61afb12f4958978055e4a8e5d1f
parentbc79e5199071472f3d728826f381abf8cca59456 (diff)
downloadqmk_firmware-0a69225637ab488e3dd7d01a21763f20aab4bc81.tar.gz
[Keyboard] add maja capslock indicator (#10151)
* add maja capslock indicator add maja capslock indicator * Update keyboards/kbdfans/maja/maja.c Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com>
-rwxr-xr-xkeyboards/kbdfans/maja/maja.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/keyboards/kbdfans/maja/maja.c b/keyboards/kbdfans/maja/maja.c
index 545d8c46e..a0afcbda8 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);
+ }
+}