~ruther/qmk_firmware

ref: f4ed65169fc711d7621cdda94d49c9a72edab4cb qmk_firmware/keyboards/capsunlocked/cu80/v2/v2.c -rw-r--r-- 539 bytes
f4ed6516 — QMK Bot Merge remote-tracking branch 'origin/master' into develop 1 year, 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2021 CapsUnlocked
// SPDX-License-Identifier: GPL-2.0-or-later
#include "quantum.h"

void matrix_init_kb(void) {
    setPinOutput(E6);
    matrix_init_user();
}

#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(62, 255, 255, 255);
    }
    if (host_keyboard_led_state().scroll_lock) {
        rgb_matrix_set_color(14, 255, 255, 255);
    }
    return true;
}
#endif
Do not follow this link