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

@ -33,12 +33,3 @@ __attribute__((weak)) layer_state_t layer_state_set_user(layer_state_t state) {
gpio_write_pin(D5, layer_state_cmp(state, 1));
return state;
}
bool led_update_kb(led_t led_state) {
bool res = led_update_user(led_state);
if (res) {
// gpio_write_pin sets the pin high for 1 and low for 0.
gpio_write_pin(D4, led_state.caps_lock);
}
return res;
}