Hello everyone, I think I have found a bug in AnalogButtons library, which I am using for a project since... 2 years ago!!!! ![]()
For anyone of you interested the bug is caused by:
void AnalogButtons::checkButtons()
{
 if (millis() + time > 70) // don't sample analog more than 70 ms
  {..
time is a class variable which is used to check if 70 ms (in this case) are over.
But of course we need the minus sign to check the current time (millis) against the previous saved time:
if (millis() - time > 70)
The IF in the original version is (almost) always true, this is way the library is actually working.
I cannon contact the author of the library, so I taught I could post this bug here.
Sorry if the forum is not the correct place...