2023-04-15 12:07:32 +01:00
|
|
|
#include "quantum.h"
|
2018-07-06 16:15:56 +01:00
|
|
|
|
2022-12-14 11:14:10 +00:00
|
|
|
void led_init_ports(void) {
|
2024-05-03 06:21:29 +01:00
|
|
|
gpio_set_pin_output(B2);
|
|
|
|
gpio_set_pin_output(B6);
|
2022-12-14 11:14:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool led_update_kb(led_t led_state) {
|
|
|
|
bool res = led_update_user(led_state);
|
|
|
|
if(res) {
|
2024-05-03 06:21:29 +01:00
|
|
|
gpio_write_pin(B2, !led_state.caps_lock);
|
|
|
|
gpio_write_pin(B6, led_state.raw == 0);
|
2022-12-14 11:14:10 +00:00
|
|
|
}
|
|
|
|
return res;
|
2018-07-06 16:15:56 +01:00
|
|
|
}
|