Update GPIO macros in keymaps (#23792)

This commit is contained in:
Ryan 2024-05-25 04:38:57 +10:00 committed by GitHub
parent 8ff8e9eae5
commit b8f29c3865
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
82 changed files with 402 additions and 402 deletions

View file

@ -55,27 +55,27 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
bool led_update_user(led_t led_state) {
if (led_state.num_lock) {
setPinOutput(B0);
writePinLow(B0);
gpio_set_pin_output(B0);
gpio_write_pin_low(B0);
} else {
setPinInput(B0);
writePinLow(B0);
gpio_set_pin_input(B0);
gpio_write_pin_low(B0);
}
if (led_state.caps_lock) {
setPinOutput(B1);
writePinLow(B1);
gpio_set_pin_output(B1);
gpio_write_pin_low(B1);
} else {
setPinInput(B1);
writePinLow(B1);
gpio_set_pin_input(B1);
gpio_write_pin_low(B1);
}
if (led_state.scroll_lock) {
setPinOutput(B2);
writePinLow(B2);
gpio_set_pin_output(B2);
gpio_write_pin_low(B2);
} else {
setPinInput(B2);
writePinLow(B2);
gpio_set_pin_input(B2);
gpio_write_pin_low(B2);
}
return false;
}