rose75.c (515B)
1 // Copyright 2023 Matthijs Muller (@Smollchungus) 2 // SPDX-License-Identifier: GPL-2.0-or-later 3 4 #include "quantum.h" 5 6 #ifdef RGB_MATRIX_ENABLE 7 bool rgb_matrix_indicators_kb(void) { 8 if (!rgb_matrix_indicators_user()) { 9 return false; 10 } 11 if (host_keyboard_led_state().caps_lock) { 12 rgb_matrix_set_color(0, 200, 0, 0); 13 rgb_matrix_set_color(1, 200, 0, 0); 14 } else { 15 rgb_matrix_set_color(0, 0, 0, 0); 16 rgb_matrix_set_color(1, 0, 0, 0); 17 } 18 return true; 19 } 20 #endif