logo

qmk_firmware

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

v2.c (546B)


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