Update keyboards/protokeeb/rev1/rev1.c

Renaming Arduino-style GPIO pin functions (#23085, #23093)

Co-authored-by: Ryan <fauxpark@gmail.com>
This commit is contained in:
Mrinal Singh Tak 2024-07-11 01:47:56 +05:30 committed by GitHub
parent 3f06af21c9
commit 739ff79006
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,7 +19,7 @@
// Override the matrix read function to include the encoder button
void matrix_read_cols_on_row(matrix_row_t current_matrix[], uint8_t current_row) {
if (current_row == ENCODER_BUTTON_ROW) {
if (readPin(ENCODER_BUTTON_PIN) == 0) {
if (gpio_read_pin(ENCODER_BUTTON_PIN) == 0) {
current_matrix[current_row] |= (1 << ENCODER_BUTTON_COL);
} else {
current_matrix[current_row] &= ~(1 << ENCODER_BUTTON_COL);