diff options
author | Ryan <fauxpark@gmail.com> | 2024-05-03 15:21:29 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-03 15:21:29 +1000 |
commit | d09a06a1b354760fd0e64a453abade972900e885 (patch) | |
tree | 88d94640f4507ac8d7f570607423825bec3c6f89 /keyboards/al1/matrix.c | |
parent | 5426a7a129acf2ff5c8b435014747f1238e17965 (diff) |
Update GPIO API usage in keyboard code (#23361)
Diffstat (limited to 'keyboards/al1/matrix.c')
-rw-r--r-- | keyboards/al1/matrix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/al1/matrix.c b/keyboards/al1/matrix.c index e3d7971f1c..508a2b5ea9 100644 --- a/keyboards/al1/matrix.c +++ b/keyboards/al1/matrix.c @@ -48,7 +48,7 @@ static void select_col(uint8_t col) { static void init_pins(void) { for (uint8_t x = 0; x < MATRIX_ROWS; x++) { - setPinInputHigh(row_pins[x]); + gpio_set_pin_input_high(row_pins[x]); } } @@ -65,7 +65,7 @@ static bool read_rows_on_col(matrix_row_t current_matrix[], uint8_t current_col) matrix_row_t last_row_value = current_matrix[row_index]; // Check row pin state - if (readPin(row_pins[row_index]) == 0) { + if (gpio_read_pin(row_pins[row_index]) == 0) { // Pin LO, set col bit current_matrix[row_index] |= (MATRIX_ROW_SHIFTER << current_col); } else { |