~ruther/qmk_firmware

ref: 3665ae04410c064a7ab8e9f8aa5f58b7105e16b8 qmk_firmware/keyboards/kc60/kc60.c -rw-r--r-- 166 bytes
3665ae04 — HorrorTroll [Keyboard] HorrorTroll Nyx (#21143) 1 year, 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
#include "quantum.h"

void led_update_ports(led_t led_state) {
    if (led_state.caps_lock) {
        setPinOutput(B2);
    } else {
        setPinInput(B2);
    }
}
Do not follow this link