Skip to content

Commit

Permalink
Update keyboards/protokeeb/rev1/rev1.c
Browse files Browse the repository at this point in the history
Renaming Arduino-style GPIO pin functions (qmk#23085, qmk#23093)

Co-authored-by: Ryan <[email protected]>
  • Loading branch information
atechofficials and fauxpark authored Jul 10, 2024
1 parent 3f06af2 commit 739ff79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keyboards/protokeeb/rev1/rev1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 739ff79

Please sign in to comment.