brick65s.c (554B)
1 // Copyright 2024 Hyojin Bak (@eerraa) 2 // SPDX-License-Identifier: GPL-2.0-or-later 3 4 #include "quantum.h" 5 6 bool rgb_matrix_indicators_kb(void) { 7 if (!rgb_matrix_indicators_user()) { 8 return false; 9 } 10 11 if (host_keyboard_led_state().caps_lock) { 12 rgb_matrix_set_color(0, 200, 0, 0); 13 } else { 14 rgb_matrix_set_color(0, 0, 0, 0); 15 } 16 17 if (host_keyboard_led_state().scroll_lock) { 18 rgb_matrix_set_color(1, 200, 0, 0); 19 } else { 20 rgb_matrix_set_color(1, 0, 0, 0); 21 } 22 23 return true; 24 }