qmk_firmware

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

v2.c (546B)


      1 // Copyright 2021 CapsUnlocked
      2 // SPDX-License-Identifier: GPL-2.0-or-later
      3 #include "quantum.h"
      4 
      5 void matrix_init_kb(void) {
      6     gpio_set_pin_output(E6);
      7     matrix_init_user();
      8 }
      9 
     10 #ifdef RGB_MATRIX_ENABLE
     11 bool rgb_matrix_indicators_kb(void) {
     12     if (!rgb_matrix_indicators_user()) {
     13         return false;
     14     }
     15     if (host_keyboard_led_state().caps_lock) {
     16         rgb_matrix_set_color(62, 255, 255, 255);
     17     }
     18     if (host_keyboard_led_state().scroll_lock) {
     19         rgb_matrix_set_color(14, 255, 255, 255);
     20     }
     21     return true;
     22 }
     23 #endif