Hi! I am using this Sketch to drive my LEDs. Everything works great, exept when I set the LED count to 160 or more. If I do so no LED is lighting up. I think it has something to do with the Software Serial Library because if I comment out all Serial lines, it works well with 160+ Leds. Does someone got this working? Any Ideas?
http://funkboxing.com/wordpress/wp-content/_postfiles/sk_FastSPI2FXv051_POST.ino
Maybe running out of ram?
What microcontroller are you using? As Larry stated, you possibly are running out of RAM. Can you explain your setup a bit more, like what type LEDs you are using, Arduino model, etc.?
I had a issue compiling with the version of the ide I was using. I tried with the nightly build and it worked with the serial libary. Before that I was having issues with serial library. Might wanna try that.
Thanks for the suggestions! I will try it out tomorrow. I am using WS2811 Led Strips connected to an Arduino Uno. I am also thinking that I am running out of Ram because when i strip down the Code to just a few effects it works fine! I will keep you guys posted.
If you compile with the beta Arduino 1.5.x, it will give you an idea of the RAM usage vs total of your board when you compile the sketch. It only works for global variables, but that’s what the leds[] array is.