I need a hand. I'm trying to figure out how to shuffle some neopixel pins. Right now, I have a function that shuffles the pins, but I don't know how to define those pins and start the strips. I've got a pastebin of what I have over here:
Basically what's stumping me is this:
NeoPatterns Strip1(32, neoPixelPins[0], NEO_GRB + NEO_KHZ800, &StripComplete);
I can't move this into the setup function. So I can't do it after shufflepins() in setup, and I can't move Strip1.begin() etc out of a function or into the start of loop().
So. How can I do this? i need to first shuffle the pins, then define my strips, then start them. This needs to be reusable, because at the end of the game, it re-shuffles all the pins and starts over.
I'm going to have a read through this: Call a function before main
But if someone can give me a hand with this, I would appreciate it. I'm new to C++.
Reference on where the neopatterns class came from: https://learn.adafruit.com/multi-tasking-the-arduino-part-3/using-neopatterns