qmk_firmware/keyboards/kbdfans/kbd75/rev2/rev2.c
Drashna Jaelre a08be85780 Add pin initializiation for KBD75 (#5129)
So that the LED indicator actually works
2019-02-14 13:28:14 -08:00

17 lines
334 B
C

#include "rev2.h"
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
writePinHigh(B2);
} else {
writePinLow(B2);
}
led_set_user(usb_led);
}
void matrix_init_kb(void) {
setPinOutput(B2);
matrix_init_user();
}