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