Hello out there,
i had some thoughts about memory using the neopixel lib. Please correct me if i am wrong.
If i have four stripes with 300 LEDs per stripe, I use 300*4*3 (LED * Strips * 3) = bits of memory. I connect all data wire to one controller pin. In case I chenge the wirering to 4 different pins on the adruino, do i consume the same amount of memory? And the next question comes up: Is it possible to change the output pin at runtime? This menas i have do do the job for coloring the strips four times with different pins and hoppfully the same part of my memory, so i have just the 1/4 of memory used.
thanks in advance for your answers.
regards Mike
Thoughts about memory
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88037
- Joined: Sat Feb 07, 2009 10:11 am
Re: Thoughts about memory
There is a small amount of additional memory overhead per strip. So if you define it as 4 different strips controlled by 4 different pins, there will be a slight increase in memory.In case I chenge the wirering to 4 different pins on the adruino, do i consume the same amount of memory?
Yes. There is a "setPin" function in the library.And the next question comes up: Is it possible to change the output pin at runtime?
Please be positive and constructive with your questions and comments.