Skip to content

Commit

Permalink
revert InputDriver button GPIO workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
mverch67 committed Sep 27, 2024
1 parent 863f9fa commit ffe0361
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion source/EncoderInputDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ void EncoderInputDriver::encoder_read(lv_indev_t *indev, lv_indev_data_t *data)

#ifdef INPUTDRIVER_ENCODER_BTN
if (action == TB_ACTION_NONE) {
pinMode(INPUTDRIVER_ENCODER_BTN, INPUT); // workaround for trackball button issue
if (!digitalRead(INPUTDRIVER_ENCODER_BTN)) {
action = TB_ACTION_PRESSED;
}
Expand Down

0 comments on commit ffe0361

Please sign in to comment.