Thoughts about memory

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
mastermannrw
 
Posts: 1
Joined: Tue Nov 06, 2018 2:27 am

Thoughts about memory

Post by mastermannrw »

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

User avatar
adafruit_support_bill
 
Posts: 88037
Joined: Sat Feb 07, 2009 10:11 am

Re: Thoughts about memory

Post by adafruit_support_bill »

In case I chenge the wirering to 4 different pins on the adruino, do i consume the same amount of 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.
And the next question comes up: Is it possible to change the output pin at runtime?
Yes. There is a "setPin" function in the library.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”