Hi,
I'm building a desk where the front legs and stiles each have 3 windows with stained glass; 7 in all. Each of these will be a different frequency from a Sparkfun SpectrumShield. There are 28 LEDs in each group. In each of the 7 legs/stiles the lower window will be green, the middle yellow and the top red. I have it working with one test leg and it works well. Each stile/leg will be it's own strip; not one continues LED strip. I was hoping to use an array of strips, but I'm not sure how I can do that or if it's possible. I create one leg like this:
Adafruit_NeoPixel strip = Adafruit_NeoPixel(28, PIN, NEO_GRB + NEO_KHZ800);
I wanted to do this:
Adafruit_NeoPixel strip[7] = Adafruit_NeoPixel(28, PIN, NEO_GRB + NEO_KHZ800); but I need PIN to be different for each leg/stile. Any idea how I can do that?
Thanks,
Ken
Spectrum Analyzer with NeoPixels
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- kena
- Posts: 4
- Joined: Sun Feb 23, 2014 12:38 pm
Re: Spectrum Analyzer with NeoPixels
I figured it out. I think this should work.
Adafruit_NeoPixel strip[7] = Adafruit_NeoPixel(28, PIN, NEO_GRB + NEO_KHZ800);
for (i=0;i<numStrips;i++)
{
strip.setPin(i);
strip.begin();
strip.show();
}
Adafruit_NeoPixel strip[7] = Adafruit_NeoPixel(28, PIN, NEO_GRB + NEO_KHZ800);
for (i=0;i<numStrips;i++)
{
strip.setPin(i);
strip.begin();
strip.show();
}
Please be positive and constructive with your questions and comments.