Support for ESP8266, new button handling
Support for ESP8266 added so now both ESP32 and ESP8266 are supported.
Previous button click handling using interrupt is now obsolete since causing more problems than expected.
Please look at upadated examples how to handle click, properly initialize encoder and avoid crashing.
In most examples is shown using a isEncoderButtonClicked to ask if a button was clicked.
Debuuncing and waiting a button to be released within maximum timeout are supported.
But in case you need detection if button is down you can also use simple isEncoderButtonDown.
Using this you can do your our debouncing logic or advanced things like double click, long click...