Spectrum Analyzer with NeoPixels

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
kena
 
Posts: 4
Joined: Sun Feb 23, 2014 12:38 pm

Spectrum Analyzer with NeoPixels

Post by kena »

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

User avatar
kena
 
Posts: 4
Joined: Sun Feb 23, 2014 12:38 pm

Re: Spectrum Analyzer with NeoPixels

Post by kena »

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();
}

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”