The task was as follows.
When crossing the infrared beam at the bottom of the stairs - the LEDs smoothly light on upwards.
When crossing the infrared beam at the top of the stairs - the LEDs light on down smoothly.
In case when both beams are crossed at the same time- all the LEDs light on smoothly
After a certain time, preset using the display and the keyboard the LEDs light down smoothly in the same direction, in which it has been turned on.
All the delays are set and controlled by the display.
Several iluminating effects can be find in the menu.
And the choice of outputs (1 to 16)
The program was written in CodeVisionAVR.
I will not post the whole code , but here are some main points: