- I'm glad to say it works fine! : multiple simultaneous patterns on my single LED strip!
(just corrected my draft Blink function which didn't blink i'll edit the previous post)
void blinkEffect(subStrips &substrip, uint32_t color) {
for(int i=substrip.startIndex; i<(substrip.startIndex+substrip.nb_LED) ; i++) {
if (strip.getPixelColor(i) == 0) { strip.setPixelColor(i, color); }
else { strip.setPixelColor(i, 0); }
}
strip.show();
substrip.lastUpdate = millis(); // time for next change to the display
}
- Thanks Grumpy_Mike!
In my grand scheme :-[ it seemed interesting to address orders to sub strip passing pattern as an argument.
Please advice me another way to follow!