2020-04-05 05:28:40 +00:00
|
|
|
#include "decadepad.h"
|
2020-04-20 09:54:33 +00:00
|
|
|
void matrix_init_kb(void) {
|
|
|
|
led_init_ports();
|
|
|
|
matrix_init_user();
|
|
|
|
};
|
|
|
|
|
|
|
|
void led_init_ports(void) {
|
|
|
|
setPinOutput(D4);
|
|
|
|
}
|
|
|
|
|
2020-04-05 05:28:40 +00:00
|
|
|
bool led_update_kb(led_t led_state) {
|
|
|
|
if (led_update_user(led_state)){
|
2020-04-20 09:54:33 +00:00
|
|
|
writePin(D4, !led_state.num_lock);
|
2020-04-05 05:28:40 +00:00
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|