2023-04-05 07:50:56 +02:00
|
|
|
#include "quantum.h"
|
2019-05-06 06:08:12 +02:00
|
|
|
|
2020-05-28 03:03:02 +02:00
|
|
|
void keyboard_pre_init_kb(void) {
|
2024-05-03 07:21:29 +02:00
|
|
|
gpio_set_pin_output(INDICATOR_PIN_0);
|
|
|
|
gpio_set_pin_output(INDICATOR_PIN_1);
|
|
|
|
gpio_set_pin_output(INDICATOR_PIN_2);
|
2020-05-28 03:03:02 +02:00
|
|
|
|
|
|
|
keyboard_pre_init_user();
|
2019-05-06 06:08:12 +02:00
|
|
|
}
|
|
|
|
|
2020-06-13 09:06:38 +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) {
|
2024-05-03 07:21:29 +02:00
|
|
|
gpio_write_pin(INDICATOR_PIN_0, !led_state.num_lock);
|
|
|
|
gpio_write_pin(INDICATOR_PIN_1, !led_state.caps_lock);
|
|
|
|
gpio_write_pin(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
|
|
|
}
|