BUTTON .... why ???

Originally Posted by
malc-c
Ok, trying to get my head round the BUTTON statement, and failing.. bu I just love the line
which was what I was originally doing .....
Oh well ... I'll keep trying
Hi,Malc
The IF THEN Statement implies your switch is an ideal switch and debouncing not tricky ...
BUTTON is more complicated and slow ... but works in very difficult situations.
The state of art is to verify the button has not changed its state BEFORE debouncing time has ended ...
Multiple IF ... THEN ... ELSE following each others reach that GOAL ...
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks