Migrate led_update_kb implementations to DD (#23981)
This commit is contained in:
parent
cb39df273d
commit
17498fa48a
45 changed files with 94 additions and 658 deletions
|
|
@ -8,6 +8,9 @@
|
|||
"pid": "0x001F",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"indicators": {
|
||||
"caps_lock": "F1"
|
||||
},
|
||||
"rgblight": {
|
||||
"saturation_steps": 8,
|
||||
"brightness_steps": 8,
|
||||
|
|
|
|||
|
|
@ -17,19 +17,6 @@
|
|||
|
||||
bool g_first_execution = false;
|
||||
|
||||
void keyboard_pre_init_kb(void) {
|
||||
gpio_set_pin_output(F1);
|
||||
|
||||
keyboard_pre_init_user();
|
||||
}
|
||||
|
||||
bool led_update_kb(led_t led_state) {
|
||||
if (led_update_user(led_state)) {
|
||||
gpio_write_pin(F1, led_state.caps_lock);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// This is some magic so that PCBs flashed with VIA firmware at the factory
|
||||
// will start with an RGB test pattern. Not relevant for non-VIA firmware.
|
||||
#ifdef VIA_ENABLE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue