1
0
Fork 0

Update GPIO API usage in keyboard code (#23361)

This commit is contained in:
Ryan 2024-05-03 15:21:29 +10:00 committed by GitHub
parent 5426a7a129
commit d09a06a1b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
390 changed files with 3912 additions and 3913 deletions

View file

@ -18,13 +18,13 @@
// Prepare layer indicator LED
void keyboard_post_init_kb(void) {
setPinOutput(LAYER_INDICATOR_LED_PIN);
writePinLow(LAYER_INDICATOR_LED_PIN);
gpio_set_pin_output(LAYER_INDICATOR_LED_PIN);
gpio_write_pin_low(LAYER_INDICATOR_LED_PIN);
keyboard_post_init_user();
}
// Function for layer indicator LED
layer_state_t layer_state_set_kb(layer_state_t state) {
writePin(LAYER_INDICATOR_LED_PIN, !layer_state_cmp(state, 0));
gpio_write_pin(LAYER_INDICATOR_LED_PIN, !layer_state_cmp(state, 0));
return layer_state_set_user(state);
}