Wifsimster / adalight_ws2812

This is a fork of Adalight working with WS2811/WS2812 LED using the last version of FastLED. :bulb:
158 stars 81 forks source link

Max LED number is 255 #3

Open neo77777 opened 3 years ago

neo77777 commented 3 years ago

Hello I have an issue that when I set the number of LED's above 255 in "#define NUM_LEDS 240" the LED's will not light anymore It is working fine with 255 and under but if I go to 256 I still get the RGB flash at the start but no light after that I'm using Prismatik (unofficial) 64bit and WS2812B LED's I have also tried to use "FastLED.h" V 3.1.3 and V3.3.3

philibertc commented 3 years ago

Hello @neo77777, Yes, this is a limitation of Adalight, I will try to find an article on the web explaining this.

gabekerchner commented 2 years ago

@philibertc Any updates for that? I need use with 374 Leds

philibertc commented 2 years ago

Hello, according to this forum, this program should work fine up to 500 leds. There are some explanations. Best Regards,

Ekristoffe commented 1 year ago

in the code there is: for (uint8_t i = 0; i < NUM_LEDS; i++) {

The loop can only goes up to 8bit encoded (255), change the line for for (uint16_t i = 0; i < NUM_LEDS; i++) { to enable more than 255 led.