2019-05-06 06:08:12 +02:00
|
|
|
#include "alice.h"
|
|
|
|
|
|
|
|
void matrix_init_board(void){
|
2020-04-16 00:37:47 +02:00
|
|
|
setPinOutput(INDICATOR_PIN_0);
|
|
|
|
setPinOutput(INDICATOR_PIN_1);
|
|
|
|
setPinOutput(INDICATOR_PIN_2);
|
2019-05-06 06:08:12 +02:00
|
|
|
}
|
|
|
|
|
2019-12-13 18:14:11 +01:00
|
|
|
bool led_update_kb(led_t led_state) {
|
|
|
|
bool runDefault = led_update_user(led_state);
|
|
|
|
if (runDefault) {
|
2020-04-16 00:37:47 +02:00
|
|
|
writePin(INDICATOR_PIN_0, !led_state.num_lock);
|
|
|
|
writePin(INDICATOR_PIN_1, !led_state.caps_lock);
|
|
|
|
writePin(INDICATOR_PIN_2, !led_state.scroll_lock);
|
2019-05-06 06:08:12 +02:00
|
|
|
}
|
2019-12-13 18:14:11 +01:00
|
|
|
return runDefault;
|
2019-05-06 06:08:12 +02:00
|
|
|
}
|