qmk_firmware

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

tomak79s.c (392B)


      1 // Copyright 2023 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     if (host_keyboard_led_state().caps_lock) {
     11         for (uint8_t i = 93; i <= 101; i++) {
     12             rgb_matrix_set_color(i, 0, 128, 128);
     13         }
     14     }
     15     return true;
     16 }