
Originally Posted by
Acetronics
Hi, Steve
Might work with two " Button" commands following each other, as debounce time is effective ONLY if condition TRUE ...
he,he ...
Alain
I haven't use Button -command too, but couple of IF - THEN with PAUSE works for me.
Code:
IF But = 0 then 'Button is pressed and debounce detections starts
PAUSE 100 'wait 100ms or some other more suitable time
IF But = 0 then 'if button is still held down then do something
'start timer or loop for 2nd button press detection ...
I think, some time window must be defined otherwise you will be waiting that other press forever...
Also nice to hear that Steve had similar thoughts 
BR,
-Gusse-
Bookmarks