~ruther/qmk_firmware

ref: 8ad2e307323415ac0a0198daf79223b3ae90de97 qmk_firmware/keyboards/rose75/rose75.c -rw-r--r-- 515 bytes
8ad2e307 — James Young Migrate `LOCKING_*_ENABLE` to Data-Driven: A-C, Part 1 (#23745) 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2023 Matthijs Muller (@Smollchungus)
// SPDX-License-Identifier: GPL-2.0-or-later

#include "quantum.h"

#ifdef RGB_MATRIX_ENABLE
bool rgb_matrix_indicators_kb(void) {
    if (!rgb_matrix_indicators_user()) {
         return false;
    }
    if (host_keyboard_led_state().caps_lock) {
        rgb_matrix_set_color(0, 200, 0, 0);
        rgb_matrix_set_color(1, 200, 0, 0);
    } else {
        rgb_matrix_set_color(0, 0, 0, 0);
        rgb_matrix_set_color(1, 0, 0, 0);
    }
    return true;
}
#endif
Do not follow this link