|
Re: Help needed with algorithm
Do you have an array that is 24 LEDs tall by some other number of LEDs wide? If so, how wide? Your current algorithm seems to be directed at filling an array 24 x 1000 LEDs. If your array is shorter (or longer) than this, you will need to change the increment of the outer loop. (Change the 500 to half of your array length.) If that doesn't do it, I can't help much more without seeing the details of the libraries and possibly hardware (LED array) you're using; a link to a page about the array would probably be enough of a lead.
__________________
If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
|