I was wondering if there is a way to disable certain led's in a strip with the adafruit library so that all sequences will just skip over those selected leds and leave them off.
You will need to write code to write black to the array location prior to running each ‘strip.show()’ call.
You can look at the strip.show() function to see what can be added to clear those locations.
#1 is obviously assuming you’re using a strip of individually addressable LEDs, such as WS2812B aka Neopixels. If you have another strip, do let us know what you’re using.
Clearly this is do-able, but it would be worthwhile knowing why you need to do this; what is the particular application?
rexshow: I was wondering if there is a way to disable certain led's in a strip with the adafruit library so that all sequences will just skip over those selected leds and leave them off.
Simply writing black to the skipped LEDs will not work if you are running an effect over the entire strip length, it would cause a discontinuation in the pattern. If you want to skip over N LEDs, run the effect over (stripLength - N) LEDs, then move the resulting LED data to the appropriate locations in the strip. Gets a bit more complicated if you are using an effect that needs the previous values from each LED to generate the animation.
Hi, We need?
- What controller you are using?
- What type/sort of LED strip you are using?
- What Adafruit Library are you using?
- Have you got/written code working that at least controls or just turns the LEDs ON?
Thanks.. Tom.. :)