I would like to know what is the best way to code a program to call two different subroutines depending if I either press OR "press and hold" a button.

I want to call "STOP" subroutine evey time a button is pressed, and I also want to call "PARK" subroutine if the button is hold for a few seconds.


Any suggestion?

J-P