logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

brick65s.c (554B)


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