2023-04-15 13:07:32 +02:00
|
|
|
#include "quantum.h"
|
2017-02-08 01:55:40 +01:00
|
|
|
|
2022-10-15 21:09:03 +02:00
|
|
|
void led_update_ports(led_t led_state) {
|
|
|
|
if (led_state.caps_lock) {
|
2024-05-03 07:21:29 +02:00
|
|
|
gpio_set_pin_output(B2);
|
2022-10-15 21:09:03 +02:00
|
|
|
} else {
|
2024-05-03 07:21:29 +02:00
|
|
|
gpio_set_pin_input(B2);
|
2017-02-08 01:55:40 +01:00
|
|
|
}
|
2020-11-03 01:55:22 +01:00
|
|
|
}
|