Hi, Pericles
"If a third ping goes high and if the first pin changes to low or if lamp is in delay, delay was cancelled (but yet fade off)"
The simple way ...
instead of " PAUSE 5000" for the delay ...
just use
Code:
...
' Conditionnal DELAY - tests "Pincancel" pin every 10 ms
FOR I = 1 to 500
IF Pincancel = 1 THEN jumpover
PAUSE 10
NEXT I
jumpover :
' Fading sequence
...
That's all !
Interrupts ... Interrupts ??? What's that for ???
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