logo

qmk_firmware

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

rose75.c (515B)


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