I am using neopixelNeoPixel strips, and I want to be able to declare a pointer to them, but not initialize them until the setupsetup function (because they will initialize with certain variables only made available in setupsetup).
For simpler data types, I am just doing:
int totalNumColors = 4; //number of colors user can cycle through`
uint32_t* colorArray = new uint32_t[totalNumColors];
void setup() {
for (int i=0;i<totalNumColors;i++){
colorArray[i] = totalColorArray[i];
}
}
How do I do this for neopixelNeoPixel strip intializers? I tried:
Adafruit_NeoPixel* pixels = new Adafruit_Neopixel;
Adafruit_NeoPixel* pixels = new Adafruit_Neopixel;`
but I get the error:
expected type-specifier before 'adafruit neopixel'