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, ...
grbl is stepper motor controller firmware for three-axis cnc machines, intended to run on Arduinos with a motor driver add-on board. Engineer in Wonderland cnc-related blogs are indexed here It is the ...