keychron_qmk_firmware/keyboards/reversestudio/decadepad/decadepad.c
huajijam 7e4cf9ace2
Fixing DecadePad Numlock LED Bug (#8831)
* Fixing Numlock LED Bugs

* Change LED CODE to new API
2020-04-20 10:54:33 +01:00

16 lines
291 B
C

#include "decadepad.h"
void matrix_init_kb(void) {
led_init_ports();
matrix_init_user();
};
void led_init_ports(void) {
setPinOutput(D4);
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)){
writePin(D4, !led_state.num_lock);
}
return true;
}