adafruit / Adafruit_NeoPixel

Arduino library for controlling single-wire LED pixels (NeoPixel, WS2812, etc.)
GNU Lesser General Public License v3.0
3.06k stars 1.26k forks source link

unlock more than 115 leds #33

Closed sulram closed 10 years ago

sulram commented 10 years ago

How can I use more than 115 leds in WS2811/12 ledstrips? That's the maximum I can control when using the library. I really appreciate if anyone can help with some tips on this. I had the same problem using FastLed library too. Thanks!

rhettc commented 10 years ago

I've got a 144 pixel strip that I'm using without any issues. Can you perhaps create a gist or link to your sketch where you're having the issue?

PaintYourDragon commented 10 years ago

Are you using an ATtiny85-based board like a Trinket? RAM is limited, that's the most they can handle.

sulram commented 10 years ago

I tested the code bellow with Arduino Uno and Arduino Mega, the same problem. Leds goes to 115, and led no. 120 blinks red, but 115 is the limit.

https://gist.github.com/sulram/d106fb554bd3801d9e4a

Just for notice, I was using WS2811 ledstrip, but not from Adrafruit.

Do I have to do something like plug the ground of the end of ledstrip somewhere, etc?

PaintYourDragon commented 10 years ago

Tested code, works normally on 144 LED strip. Sounds like there's a defective LED (which'll affect everything downstream). That it's close to a 512 byte boundary was a coincidence; ignore prior comment.

sulram commented 10 years ago

Thank you guys. I will try again with other ledstrip. I will also try to remove/skip the led #116 and check if it works

sulram commented 10 years ago

You were right, it was a deffect LED. Thank you!