I have an arduino-Yun-Project that uses 8 different Neopixel-circles, all seperately hooked up to different pins of the arduino.
First of all: It is not possible to hook these circles up to each other and use them as just one long neopixel-strip, because I only have three wires to each of these circles.
Right now I have the Neopixel-Definitions for completely independent objects, like this:
Adafruit_NeoPixel pixels_0 = Adafruit_NeoPixel(NUMPIXELS, 2, NEO_GRB + NEO_KHZ800);
Adafruit_NeoPixel pixels_1 = Adafruit_NeoPixel(NUMPIXELS, 3, NEO_GRB + NEO_KHZ800);
Adafruit_NeoPixel pixels_2 = Adafruit_NeoPixel(NUMPIXELS, 4, NEO_GRB + NEO_KHZ800);
I would much rather use them as an array as in pixels[0], pixels[1] and pixels[2], because then I'd have significantly less code in my script.
Unfortunately I have no idea if that works at all and how i would have to do it.
I tried to declare the objects like this:
Adafruit_NeoPixel pixels[] = {Adafruit_NeoPixel(NUMPIXELS, 2, NEO_GRB + NEO_KHZ800), Adafruit_NeoPixel(NUMPIXELS, 3, NEO_GRB + NEO_KHZ800), Adafruit_NeoPixel(NUMPIXELS, 4, NEO_GRB + NEO_KHZ800)};
Using this code I didn't get a compiler-error - but my LEDs didn't work either...
Could anybody just give me a little push in the right direction? I'd really appreciate that!