2019-12-09 06:15:45 +01:00
|
|
|
/**
|
2021-06-11 12:35:13 +02:00
|
|
|
* rev2.c
|
2019-12-09 06:15:45 +01:00
|
|
|
*/
|
|
|
|
|
2023-04-05 07:53:45 +02:00
|
|
|
#include "quantum.h"
|
2019-12-09 06:15:45 +01:00
|
|
|
|
2024-05-03 07:21:29 +02:00
|
|
|
void matrix_init_user(void) {
|
|
|
|
gpio_set_pin_output(C6);
|
|
|
|
gpio_set_pin_output(B2);
|
|
|
|
gpio_set_pin_output(B1);
|
|
|
|
|
|
|
|
matrix_init_user();
|
2019-12-09 06:15:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
bool led_update_kb(led_t led_state) {
|
|
|
|
bool res = led_update_user(led_state);
|
|
|
|
if (res) {
|
2024-05-03 07:21:29 +02:00
|
|
|
gpio_write_pin(B1, !led_state.num_lock);
|
|
|
|
gpio_write_pin(C6, !led_state.caps_lock);
|
|
|
|
gpio_write_pin(B2, !led_state.scroll_lock);
|
2019-12-09 06:15:45 +01:00
|
|
|
}
|
|
|
|
return res;
|
|
|
|
}
|