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