Hi guys, I am using a strandtest with adafruit library,

Hi guys, I am using a strandtest with adafruit library, I just want that the strips go Red/White/Blue but the colors change in all the size of the strip, I want to control how many Leds turn in each color in the strip, example, if the strips have 30 Leds I want to just each 7 Leds change colors. I am using this code:

void loop() {
// Some example procedures showing how to display to the pixels:
colorWipe(strip.Color(255, 0, 0), 100); // Red
colorWipe(strip.Color(255, 255, 255), 100); // White
colorWipe(strip.Color(0, 0, 255), 100); // Blue
//
}

// Fill the dots one after the other with a color
void colorWipe(uint32_t c, uint8_t wait) {
for(uint16_t i=0; i<strip.numPixels(); i++) {
strip.setPixelColor(i, c);
strip.show();
delay(wait);

What I have to change?

Thanks

This G+ group is for people using the FastLED library. You might have better luck asking about the adafruit library in the adafruit forums.

I’m not exactly sure what you’re trying to do but you might need to make three for loops, one for each color. And change the start and end ranges in each for loop to however many pixels you want to light up in each color.

Hi, this forum is for the FastLED display library and not the Adafruit library.Try:

http://forums.adafruit.com/viewforum.php?f=47

Good luck!

@marmil
Exactly, but I dont know how to do it yet, I will check the other forum, Thanks

@Andrew_Tuline
Thanks

Any way I will use the Fastled libraries… Thanks