Hi All.
I have a LED strip(WS2801) of 50 LED’s. I am searching for a code which light up a LED at the beginning of the strip and sends it down to the end, once it reaches the end it must stay “ON” then send the next dot (Fill up the strip) once full switch them off. (I am using an Arduino MEGA 2560).
Hi! What code do you have so far? How far have you gotten with this?
And do you have an idea of what you want to happen once the lights are “full”? switch them off and then what? Wait for a button push? Or just start again?
It would be easier if you could provide a full working example, so volunteers could just copy and paste and get it running. Some comments in your source wouldn’t hurt either.
I experimented with a way to slow the filling effect down at the very end by using a delay that exponentially increases. The delay values that control this slowing can be tweaked based on the number of pixels in your strip and what looks good to you visually. But I’m not really sure if it will work for a large NUM_LEDS as I only tested with 32 pixels.