mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-22 03:19:24 +00:00
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:
parent
3f06af21c9
commit
739ff79006
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user