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

serial_conrol crashes at <255 LEDs #330

Closed
QubeCode opened this issue Feb 1, 2023 · 1 comment
Closed

serial_conrol crashes at <255 LEDs #330

QubeCode opened this issue Feb 1, 2023 · 1 comment

Comments

@QubeCode
Copy link

QubeCode commented Feb 1, 2023

I have an LED strip with 300 LEDs. I wat to control it through the serial monitor. Everything works just fine when I use only 255 LEDs or less, but as soon as I use more, everything is black.
P. S.: auto_mode_cycle.ino works with 300 LEDs.

@QubeCode QubeCode closed this as not planned Won't fix, can't repro, duplicate, stale Feb 1, 2023
@moose4lord
Copy link
Collaborator

You've run out of memory. An Arduino only has 2048 bytes of dynamic memory, and with the serial_control sketch there just isn't enough memory to accommodate 300 LEDs.

You can reduce the number of segments available by changing your WS2812FX instantiation to this:

WS2812FX ws2812fx = WS2812FX(LED_COUNT, LED_PIN, NEO_GRB + NEO_KHZ800, 1, 1);

which will free up some memory and allow you to drive 300 LEDs.

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

2 participants