diff options
author | Ryan <[email protected]> | 2024-05-03 15:21:29 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-05-03 15:21:29 +1000 |
commit | d09a06a1b354760fd0e64a453abade972900e885 (patch) | |
tree | 88d94640f4507ac8d7f570607423825bec3c6f89 /keyboards/gboards | |
parent | 5426a7a129acf2ff5c8b435014747f1238e17965 (diff) | |
download | qmk_firmware-d09a06a1b354760fd0e64a453abade972900e885.tar.gz qmk_firmware-d09a06a1b354760fd0e64a453abade972900e885.zip |
Update GPIO API usage in keyboard code (#23361)
Diffstat (limited to 'keyboards/gboards')
-rw-r--r-- | keyboards/gboards/gergoplex/matrix.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/keyboards/gboards/gergoplex/matrix.c b/keyboards/gboards/gergoplex/matrix.c index 9abe9a83b3..3ea6a13385 100644 --- a/keyboards/gboards/gergoplex/matrix.c +++ b/keyboards/gboards/gergoplex/matrix.c @@ -168,7 +168,7 @@ void matrix_print(void) { // Remember this means ROWS static void init_cols(void) { for (uint8_t col = 0; col < MATRIX_COLS; col++) { - setPinInputHigh(col_pins[col]); + gpio_set_pin_input_high(col_pins[col]); } } @@ -195,8 +195,8 @@ static void unselect_rows(void) { // the other row bits high, and it's not changing to a different direction for (uint8_t row = 0; row < MATRIX_ROWS_PER_SIDE; row++) { - setPinInput(row_pins[row]); - writePinLow(row_pins[row]); + gpio_set_pin_input(row_pins[row]); + gpio_write_pin_low(row_pins[row]); } } @@ -211,7 +211,7 @@ static void select_row(uint8_t row) { } } else { - setPinOutput(row_pins[row - MATRIX_ROWS_PER_SIDE]); - writePinLow(row_pins[row - MATRIX_ROWS_PER_SIDE]); + gpio_set_pin_output(row_pins[row - MATRIX_ROWS_PER_SIDE]); + gpio_write_pin_low(row_pins[row - MATRIX_ROWS_PER_SIDE]); } } |