You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FYI, as you predicted when using this library inside an interrupt timer on an esp32, it seems to fail to detect long clicks. Every click, long or short, irregardless of .setLongClickTime() is detected as a long click. I haven't delved into why this behaviour is being exhibited but was able to create a quick work around by capturing the start and stop time of the button presses / release within my own application.
Hey Nickolai,
thank you for raising the issue! And of course, it doesn't!
After thinking about it for a minute over coffee: I use millis() inside my code. 🤦
That's at least one reason without looking into the code.
I will take a look at it in the next couple of days.
To everyone trying this out: do this at your own risk!
Using this inside interrupt function may very likely not work.
This library was not designed to be used inside interrupts.
FYI, as you predicted when using this library inside an interrupt timer on an esp32, it seems to fail to detect long clicks. Every click, long or short, irregardless of .setLongClickTime() is detected as a long click. I haven't delved into why this behaviour is being exhibited but was able to create a quick work around by capturing the start and stop time of the button presses / release within my own application.
Here is a snippet:
The text was updated successfully, but these errors were encountered: