The Arduino “Bounce” library, which otherwise uses a similar method, counts time with non-blocking millis () instead, which is strictly an improvement. In general, if you have a system tick at hand, ...
There is an example of a programme that differentiates between long and short push-button pushes on the Arduino.cc website, but I was not taken it. However their was an example I did like the look of, ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results