Rev 1755 | Rev 1757 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1755 | Rev 1756 | ||
---|---|---|---|
1 | Light Sequence Template: |
1 | Light Sequence Template: |
2 | 2 | ||
3 | Created by / Erstellt von: "Magomora" |
3 | Created by / Erstellt von: "Magomora" |
4 | 4 | ||
5 | Explanation / Erklärung: |
5 | Explanation / Erklärung: |
6 | ---------------------------------------------- |
6 | ---------------------------------------------- |
7 | flashingCircle Rückwärtz |
7 | flashingCircle Rückwärtz |
8 | ---------------------------------------------- |
8 | ---------------------------------------------- |
9 | 9 | ||
10 | Command / Befehl: |
10 | Command / Befehl: |
11 | ---------------------------------------------- |
11 | ---------------------------------------------- |
12 | flashingCircleRev( r, g, b, wait) |
12 | flashingCircleRev( r, g, b, wait) |
13 | ---------------------------------------------- |
13 | ---------------------------------------------- |
14 | 14 | ||
15 | 15 | ||
16 | Code: |
16 | Code: |
17 | ---------------------------------------------- |
17 | ---------------------------------------------- |
18 | void flashingCircle( uint8_t r, uint8_t g, uint8_t b, uint8_t wait) { |
18 | void flashingCircleRev( uint8_t r, uint8_t g, uint8_t b, uint8_t wait) { |
19 | uint8_t ri1, ri2, ri3, ri4, ri5, ri6, ri7, ri8; |
19 | uint8_t ri1, ri2, ri3, ri4, ri5, ri6, ri7, ri8; |
20 | 20 | ||
21 | for (uint8_t j=0; j< riggerSize ; j++){ |
21 | for (uint8_t j = riggerSize; j > 0 ; j--){ |
22 | strip.setPixelColor(j, r, g, b, 1, 1, 1, 1, 1, 1, 1, 1); |
22 | strip.setPixelColor(j-1, r, g, b, 1, 1, 1, 1, 1, 1, 1, 1); |
23 | strip.show(); |
23 | strip.show(); |
24 | delay ( wait ); |
24 | delay ( wait ); |
25 | strip.setPixelColor(j, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1); |
25 | strip.setPixelColor(j-1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1); |
26 | strip.show(); |
26 | strip.show(); |
27 | delay ( wait/2 ); |
27 | delay ( wait/2 ); |
28 | 28 | ||
29 | } |
29 | } |
30 | } |
30 | } |
31 | ---------------------------------------------- |
31 | ---------------------------------------------- |