Subversion Repositories Projects

Rev

Rev 1793 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1790 - 1
Light Sequence Template:
2
 
3
Created by / Erstellt von:  "Magomora"
4
 
5
Explanation / Erklärung:
6
----------------------------------------------
7
Wie rainbowCycle nur für alle LEDs gleichzeitig.
8
----------------------------------------------
9
 
10
Command / Befehl:
11
----------------------------------------------
1800 - 12
rainbowCycleAll(dly, cyl, ri1, ri2, ri3, ri4, ri5, ri6, ri7, ri8);
1790 - 13
----------------------------------------------
14
 
15
 
16
Code:
17
----------------------------------------------
18
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) {
19
 uint16_t i, j, w;
20
 
1793 - 21
 for (j=0; j < 384*cyl; j++) { // cyl * cycles of all 384 colors in the wheel
1790 - 22
 for (i=0; i < riggerSize; i++) {
1793 - 23
       strip.setPixelColor(i, Wheel((j) % 384),ri1, ri2, ri3, ri4, ri5, ri6, ri7, ri8);
1790 - 24
     }
25
   strip.show(); // write all the pixels out
26
    for (w=0; w < wait; w++){
27
        delay(5);
28
        }
29
   }
30
}
31
----------------------------------------------