Hello,
Thank you for the work on this awesome lib.
I have a question about the "clicked" param passed to the callback of rendered.takeOverDisplay.
It seems that if the button is clicked, the value is set to RPRESS_PRESSED even if the button has been released. If the rotary encoder is rotated, the value is set back to RPRESS_NONE.
After some search i'm able to test if the button is clicked anytime with:
if ((clicked == RPRESS_NONE || clicked == RPRESS_PRESSED) && switches.isSwitchPressed(BUTTON_PIN)) {
...
} else if (clicked == RPRESS_HELD) {
renderer.giveBackDisplay();
}
Am I doing things right ?