Migrate led_update_kb
implementations to DD (#23985)
This commit is contained in:
parent
751482580e
commit
a2176f6a03
39 changed files with 77 additions and 533 deletions
|
@ -1,5 +1,4 @@
|
|||
#include "quantum.h"
|
||||
#include "led.h"
|
||||
|
||||
void matrix_init_kb(void) {
|
||||
// put your keyboard start-up code here
|
||||
|
@ -11,14 +10,3 @@ void matrix_init_kb(void) {
|
|||
|
||||
matrix_init_user();
|
||||
};
|
||||
|
||||
bool led_update_kb(led_t led_state) {
|
||||
bool res = led_update_user(led_state);
|
||||
if(res) {
|
||||
gpio_write_pin(D0, !led_state.caps_lock);
|
||||
gpio_write_pin(D1, !led_state.num_lock);
|
||||
gpio_write_pin(C6, !led_state.scroll_lock);
|
||||
|
||||
}
|
||||
return res;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue