Update GPIO API usage in keyboard code (#23361)
This commit is contained in:
parent
5426a7a129
commit
d09a06a1b3
390 changed files with 3912 additions and 3913 deletions
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue