Button press and press & hold how to ?
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
I'm learning something here
Hi Robson,
you said: "PAUSE 20 ' Button delay or use DEFINE BUTTON_PAUSE before"
I tought before that DEFINE BUTTON_PAUSE was used only by the BUTTON command. Now, from what you wrote is that correct to say that BUTTON_PAUSE will put a debounce delay on all PIC inputs pins?
J-P