mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-11 06:29:15 +00:00
Fixing DecadePad Numlock LED Bug (#8831)
* Fixing Numlock LED Bugs * Change LED CODE to new API
This commit is contained in:
parent
0d658e0c95
commit
7e4cf9ace2
1 changed files with 10 additions and 1 deletions
|
@ -1,7 +1,16 @@
|
||||||
#include "decadepad.h"
|
#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) {
|
bool led_update_kb(led_t led_state) {
|
||||||
if (led_update_user(led_state)){
|
if (led_update_user(led_state)){
|
||||||
writePin(D4, led_state.num_lock);
|
writePin(D4, !led_state.num_lock);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
Loading…
Reference in a new issue