In a long (~ 200 to 300) array of Neopixel (or APA102 LEDS) is their any creative way to control a single LED? It looks like the data just cascades to the next NeoPixel in the chain.
I'm looking to string these in a tree and want them to twinkle, not look like a Vegas light show. Twinkle meaning "randomly" controlling individual Neopixels to slowly fade on and off. Main controller would be a PIC.
NeoPixel, Contol single LED in strand?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Franklin97355
- Posts: 23911
- Joined: Mon Apr 21, 2008 2:33 pm
Re: NeoPixel, Contol single LED in strand?
Code: Select all
pixels.setPixelColor(i, pixels.Color(0,150,0)); // Moderately bright green color
pixels.show(); // This sends the updated pixel color to the hardware..
- ksaccullo
- Posts: 3
- Joined: Wed May 20, 2015 12:06 am
Re: NeoPixel, Contol single LED in strand?
I’m still unclear. Can you point me to an assembly language example of your code?
What I get from your example the serial data string would look like the attached picture (trying to turn neo pixel # 3 on to ~ half bright green). But from how I read the data sheet, the third data group would cause all the neo pixels (one at a time) to turn green.
What I get from your example the serial data string would look like the attached picture (trying to turn neo pixel # 3 on to ~ half bright green). But from how I read the data sheet, the third data group would cause all the neo pixels (one at a time) to turn green.
- Franklin97355
- Posts: 23911
- Joined: Mon Apr 21, 2008 2:33 pm
Re: NeoPixel, Contol single LED in strand?
The data is passed to the string and each pixel strips off the leading bits and passes the rest down the line. The third packet will be on the front only at the third pixel.
- ksaccullo
- Posts: 3
- Joined: Wed May 20, 2015 12:06 am
Re: NeoPixel, Contol single LED in strand?
Now I got it. I was over complicating a very simple concept.
Thank you.
Thank you.
Please be positive and constructive with your questions and comments.