Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Commit

Permalink
[Keyboard] add maja capslock indicator (qmk#10151)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
2 people authored and Oscar Carlsson committed Nov 2, 2020
1 parent ae2c498 commit afeb2cf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions keyboards/kbdfans/maja/maja.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit afeb2cf

Please sign in to comment.