Rev 1793 | Blame | Compare with Previous | Last modification | View Log | RSS feed
Light Sequence Template:
Created by / Erstellt von: "Magomora"
Explanation / Erklärung:
----------------------------------------------
Wie rainbowCycle nur für alle LEDs gleichzeitig.
----------------------------------------------
Command / Befehl:
----------------------------------------------
rainbowCycleAll(dly, cyl, ri1, ri2, ri3, ri4, ri5, ri6, ri7, ri8);
----------------------------------------------
Code:
----------------------------------------------
void rainbowCycleAll(uint8_t wait, uint8_t cyl, uint8_t ri1, uint8_t ri2, uint8_t ri3, uint8_t ri4, uint8_t ri5, uint8_t ri6, uint8_t ri7, uint8_t ri8) {
uint16_t i, j, w;
for (j=0; j < 384*cyl; j++) { // cyl * cycles of all 384 colors in the wheel
for (i=0; i < riggerSize; i++) {
strip.setPixelColor(i, Wheel((j) % 384),ri1, ri2, ri3, ri4, ri5, ri6, ri7, ri8);
}
strip.show(); // write all the pixels out
for (w=0; w < wait; w++){
delay(5);
}
}
}
----------------------------------------------