1
0
Fork 0

Migrate led_update_kb implementations to DD (#23985)

This commit is contained in:
Joel Challis 2024-06-25 03:25:05 +01:00 committed by GitHub
parent 751482580e
commit a2176f6a03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
39 changed files with 77 additions and 533 deletions

View file

@ -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;
}