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

@ -42,22 +42,22 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
void matrix_init_user(void) {
// set CapsLock LED to output and off (active low)
setPinOutput(F5);
writePinHigh(F5);
gpio_set_pin_output(F5);
gpio_write_pin_high(F5);
// set NumLock LED to output and off (active low)
setPinOutput(F6);
writePinHigh(F6);
gpio_set_pin_output(F6);
gpio_write_pin_high(F6);
// set ScrollLock LED to output and off (active low)
setPinOutput(F7);
writePinHigh(F7);
gpio_set_pin_output(F7);
gpio_write_pin_high(F7);
}
// write to above indicators in a binary fashion based on current layer
layer_state_t layer_state_set_user(layer_state_t state)
{
writePin(F5, (state & 0x1));
writePin(F6, (state & 0x2));
writePin(F7, (state & 0x4));
gpio_write_pin(F5, (state & 0x1));
gpio_write_pin(F6, (state & 0x2));
gpio_write_pin(F7, (state & 0x4));
return state;
}