~ruther/qmk_firmware

ref: 7aa2ce2b38e7cf38f148d0781eae525d72260b8b qmk_firmware/keyboards/kc60/kc60.c -rw-r--r-- 180 bytes
7aa2ce2b — Joel Challis Update documentation suggestion in top level readme (#23978) 11 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) {
        gpio_set_pin_output(B2);
    } else {
        gpio_set_pin_input(B2);
    }
}
Do not follow this link