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-04-25 09:42:48 +02:00
|
|
|
void matrix_init_kb(void) {
|
2019-12-09 06:15:45 +01:00
|
|
|
setPinOutput(C6);
|
|
|
|
setPinOutput(B2);
|
|
|
|
setPinOutput(B1);
|
2024-04-25 09:42:48 +02:00
|
|
|
|
|
|
|
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) {
|
|
|
|
writePin(B1, !led_state.num_lock);
|
|
|
|
writePin(C6, !led_state.caps_lock);
|
|
|
|
writePin(B2, !led_state.scroll_lock);
|
|
|
|
}
|
|
|
|
return res;
|
|
|
|
}
|