forked from forks/qmk_firmware
73e3053e25
Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: jack <0x6a73@protonmail.com> Co-authored-by: Drashna Jaelre <drashna@live.com>
21 lines
515 B
C
21 lines
515 B
C
// Copyright 2023 Matthijs Muller (@Smollchungus)
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include "quantum.h"
|
|
|
|
#ifdef RGB_MATRIX_ENABLE
|
|
bool rgb_matrix_indicators_kb(void) {
|
|
if (!rgb_matrix_indicators_user()) {
|
|
return false;
|
|
}
|
|
if (host_keyboard_led_state().caps_lock) {
|
|
rgb_matrix_set_color(0, 200, 0, 0);
|
|
rgb_matrix_set_color(1, 200, 0, 0);
|
|
} else {
|
|
rgb_matrix_set_color(0, 0, 0, 0);
|
|
rgb_matrix_set_color(1, 0, 0, 0);
|
|
}
|
|
return true;
|
|
}
|
|
#endif
|