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