Skip to content

Commit

Permalink
Fixing DecadePad Numlock LED Bug (#8831)
Browse files Browse the repository at this point in the history
* Fixing Numlock LED Bugs

* Change LED CODE to new API
  • Loading branch information
huajijam authored Apr 20, 2020
1 parent 0d658e0 commit 7e4cf9a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion keyboards/reversestudio/decadepad/decadepad.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
#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);
writePin(D4, !led_state.num_lock);
}
return true;
}

0 comments on commit 7e4cf9a

Please sign in to comment.