Quote 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