Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max LED number is 255 #3

Open
neo77777 opened this issue Nov 22, 2020 · 4 comments
Open

Max LED number is 255 #3

neo77777 opened this issue Nov 22, 2020 · 4 comments

Comments

@neo77777
Copy link

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
Copy link

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

@gabekerchner
Copy link

gabekerchner commented Jul 11, 2022

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

@philibertc
Copy link

philibertc commented Jul 13, 2022

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

@Ekristoffe
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants