~ruther/qmk_firmware

ref: 4e9967557ef9d68202f9e321a0798be2490b51a7 qmk_firmware/keyboards/clueboard/66/rev4/rev4.c -rw-r--r-- 597 bytes
4e996755 — Cipulot Add EC Type-B (#23170) 1 year, 4 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "quantum.h"

void led_init_ports(void) {
    // Set our LED pins as output
    setPinOutput(B13); // LED1
    writePinLow(B13);
    setPinOutput(B14); // LED2
    writePinLow(B14);
    setPinOutput(A8); // LED3
    writePinLow(A8);
    setPinOutput(A0); // Capslock LED
    writePinLow(A0);
}

bool led_update_kb(led_t led_state) {
    bool res = led_update_user(led_state);
    if(res) {
        writePin(B13, led_state.num_lock);
        writePin(A0, led_state.caps_lock);
        writePin(B14, led_state.caps_lock);
        writePin(A8, led_state.scroll_lock);
    }
    return res;
}
Do not follow this link