Digital RGB LED Strips - Massive Installation
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- pburgess
- Posts: 4161
- Joined: Sun Oct 26, 2008 2:29 am
Re: Digital RGB LED Strips - Massive Installation
Sure, it's fine to call setPixelColor() off the end of a strip, it'll simply be clipped (i.e. no effect).
-
- Posts: 24
- Joined: Wed Mar 12, 2014 1:00 pm
Re: Digital RGB LED Strips - Massive Installation
Thanks, @pburgess! I just wanted to be sure before I tested it to avoid damaging a strip.Sure, it's fine to call setPixelColor() off the end of a strip, it'll simply be clipped (i.e. no effect).
Here's another question - most of the functions given as examples from Adafruit are all progressive functions - wipe, chase, etc. Is there a way to tell all or a portion of a strip to fade all pixels in unison from off to 100% white?
- adafruit_support_bill
- Posts: 88097
- Joined: Sat Feb 07, 2009 10:11 am
Re: Digital RGB LED Strips - Massive Installation
Yes. If you look at the 'progressive' functions, they all call strip.show() inside the 'for' loop. Most of them also have a delay in the loop.
To make it change instantaneously, eliminate the delay and move the strip.show() out of the loop. This way, all the pixel will be set inside the loop without delay. Then they will be written to the strip in one pass when you call strip.show().
To make it change instantaneously, eliminate the delay and move the strip.show() out of the loop. This way, all the pixel will be set inside the loop without delay. Then they will be written to the strip in one pass when you call strip.show().
Please be positive and constructive with your questions and comments.