Subversion Repositories Projects

Rev

Rev 1756 | Go to most recent revision | Details | 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
----------------------------------------------
12
flashingCircleRev( r, g, b, wait)
13
----------------------------------------------
14
 
15
 
16
Code:
17
----------------------------------------------
18
void flashingCircle( uint8_t r, uint8_t g, uint8_t b, uint8_t wait) {
19
  uint8_t ri1, ri2, ri3, ri4, ri5, ri6, ri7, ri8;
20
 
21
  for (uint8_t j=0; j< riggerSize ; j++){
22
        strip.setPixelColor(j, r, g, b, 1, 1, 1, 1, 1, 1, 1, 1);
23
        strip.show();
24
        delay ( wait );
25
        strip.setPixelColor(j, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1);
26
        strip.show();
27
        delay ( wait/2 );
28
 
29
  }
30
}
31
----------------------------------------------