Skip to content

Commit

Permalink
Changed readPin function to gpio_read_pin function in rev1.c file bec…
Browse files Browse the repository at this point in the history
…ause of core change: Renaming Arduino-style GPIO pin functions qmk#23085, qmk#23093
  • Loading branch information
atechofficials committed Jul 13, 2024
1 parent cdf87c0 commit cb54da6
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 @@ -20,7 +20,7 @@ extern matrix_row_t matrix[]; // Declare the matrix array

void matrix_scan_kb(void) {
// Read the encoder button state and update the matrix
if (readPin(ENCODER_BUTTON_PIN) == 0) {
if (gpio_read_pin(ENCODER_BUTTON_PIN) == 0) {
matrix[ENCODER_BUTTON_ROW] |= (1 << ENCODER_BUTTON_COL);
} else {
matrix[ENCODER_BUTTON_ROW] &= ~(1 << ENCODER_BUTTON_COL);
Expand Down

0 comments on commit cb54da6

Please sign in to comment.