My first foray into the world of NeoPixels was a success thanks to suggestions here. I now have the desire to branch out a little, but not sure the best way to go about this.
I am at the moment controlling a string of NEO's off of Pin 4 of the UNO. I would like to control several different strings of different quantity from the same UNO using a few of the other pins. I am currently using pin 4, but I would like to add strings to pins 5, 6, and 7.
Now if the strings were all the same quantity I could instead add a simple 1 of x demultiplexer and drive the strings that way, but in my case I would like to run strings of different quantities.
In the attached sketch I have removed most of the demo loops except for one called cascade, which is working on my test strip.
The problem I am running into is that there are two #defines that tell the code what PIN to use, and the LED COUNT at the start of the code. These would need to be dynamic as opposed to static to accomplish what I want to do, but in looking at the library .h and .cpp files, these two constants are used in many places, so I am not so sure how to get this to work.
I did the noob thing and tried to add other #defines when I created another instance of the cascade to run after the first, but that caused the compiler to have a meltdown. Which I was expecting.
I see these strips hanging down in storefronts everywhere doing exactly what I am trying to do so there must be something simple I am missing. I do not need the animation, all teh LED's can remain lit solid, I just picked tha cascade for the test. Have string one cascade, then string 2 etc.
Any tips would be appreciated