logo

qmk_firmware

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

tomak.c (427B)


  1. // Copyright 2023 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(96, 0, 128, 128);
  10. rgb_matrix_set_color(97, 0, 128, 128);
  11. rgb_matrix_set_color(98, 0, 128, 128);
  12. }
  13. return true;
  14. }