qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

commit c54c0fdc2c247f187e502d726be68be975fd9c07
parent 8c29902e5151df56bc8fb74301a6e8b365a2a8fe
Author: SergioPoverony <sergiopoverony@gmail.com>
Date:   Mon,  6 Dec 2021 06:25:41 +0500

[Keyboard] Update BM68RGB Caps Lock Backlight status indication (#13497)

Co-authored-by: Drashna Jael're <drashna@live.com>
Diffstat:
Mkeyboards/kprepublic/bm68hsrgb/bm68hsrgb.c | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/keyboards/kprepublic/bm68hsrgb/bm68hsrgb.c b/keyboards/kprepublic/bm68hsrgb/bm68hsrgb.c @@ -41,4 +41,12 @@ led_config_t g_led_config = { { 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, // Ctrl, GUI, Alt, Space, RAlt, FN, Ctrl, Left, Down, Right 2, 2, 2, 2, 2, 2 // UNDERGLOW } }; + +//CAPS backlight +__attribute__ ((weak)) +void rgb_matrix_indicators_user(void) { + if (host_keyboard_led_state().caps_lock) { + rgb_matrix_set_color(30, 0xFF, 0xFF, 0xFF); + } +} #endif