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, ...
A quick google search reveals that there are over 212,000 websites that examine how to debounce a button. After examining a number of them, though, it is obvious to me that these implementations are ...