Hi, im a bit of a n00b at all this, but have successfully pieced together a sketch that does a few different effect, but one im having trouble with is the sparkle effect.
i understand i need that to loop within the whole loop of the sketc as it only sees to do one sparke and then moves on. how would i add this in so it did say 25 sparkle effects and then moved on to the next and then later 25 snowsparkle?
Heres a section of the runthrough - and whole sketch attached. any help appreciated
Cheers, Ross.
strip.begin();
strip.show(); // Initialize all pixels to 'off'
}
void loop() {
// Some example procedures showing how to display to the pixels:
colorWipe(strip.Color(255, 0, 0), 50); // Red
colorWipe(strip.Color(255, 255, 0), 50); // Yellow
colorWipe(strip.Color(0, 255, 0), 50); // Green
colorWipe(strip.Color(0, 255, 255), 50); // Cyan
colorWipe(strip.Color(0, 0, 255), 50); // Blue
rainbow(20);
//rainbowCycle(10);
Strobe(0xff, 0xff, 0xff, 20, 50, 500);
Sparkle(0xff, 0xff, 0xff, 0, 1000); //Need to make 25 times
FadeInOut(0xCC, 0x00, 0xFF); //PURPLE
FadeInOut(0xFF, 0xFF, 0x00); //YELLOW
FadeInOut(0xCC, 0x00, 0xFF); //PURPLE
FadeInOut(0xFF, 0xFF, 0x00); //YELLOW
SnowSparkle(0x10, 0x10, 0x10, 20, random(100,1000)); //Need to make 25 times
}
//End Features