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

@ -15,12 +15,12 @@
#include "quantum.h"
void keyboard_pre_init_kb(void) {
setPinOutput(B1);
gpio_set_pin_output(B1);
keyboard_pre_init_user();
}
layer_state_t layer_state_set_kb(layer_state_t state) {
writePin(B1, layer_state_cmp(state, 1));
gpio_write_pin(B1, layer_state_cmp(state, 1));
return layer_state_set_user(state);
}