Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1882 - 1
/*****************************************************************************/
2
//                       Space for your light effects:
3
/*****************************************************************************/
4
// Only inside Void Loop() you are allowed to design your light effects !!
5
// ( If you like to program a new pattern or sequences, refer to sequences.ino)
6
/*****************************************************************************/
7
// Parameter: Colors are defined by the additive RGB color model.
8
//            n = LED No on rigger
9
//            r = red    ( max. 127)
10
//            g = green  ( max. 127)
11
//            b = blue   ( max. 127)
12
//            dly = delay ( typical: 10 - 50 )
13
//            cyl = cyles ( how many times this sequence will repeat )
14
//            riX = rigger to set pixel / to show sequence on (x= number of  rigger)
15
/*****************************************************************************/
16
/*****************************************************************************/
17
void loop() {
18
  clearstrip ();
19
 
20
  // police(dly,cyl,ri1, ri2, ri3, ri4, ri5, ri6, ri7, ri8);
21
  police(110,1,1,0,0,1,0,0,0,0);
22
  police(110,1,0,1,0,0,1,0,0,0);
23
  police(110,1,0,0,1,0,0,1,0,0);
24
  police(110,1,1,0,0,1,0,0,0,0);
25
  police(110,1,1,0,1,0,1,0,0,0);
26
  police(110,1,0,1,0,1,0,1,0,0);
27
  police(110,1,1,0,1,0,1,0,0,0);
28
updateStripConfig (3, 20);
29
  police(110,6,1,1,1,1,1,1,0,0);
30
updateStripConfig (1, 60);
31
  police(110,4,1,1,1,1,1,1,0,0);
32
updateStripConfig (6, 10);
33
 
34
 // rainbowCycle(dly, cyl, ri1, ri2, ri3, ri4, ri5, ri6, ri7, ri8)
35
  clearstrip ();
36
  rainbowCycle(0,5,0,1,0,1,0,1,0,0); // make it go through the cycle fairly fast
37
  clearstrip ();
38
  rainbowCycle(0,5,1,0,1,0,1,0,0,0); // make it go through the cycle fairly fast
39
  clearstrip ();
40
  rainbowCycle(0,5,1,1,1,1,1,1,0,0); // make it go through the cycle fairly fast
41
updateStripConfig (1, 60);
42
  rainbowCycle(0,4,1,1,1,1,1,1,0,0); // make it go through the cycle fairly fast
43
updateStripConfig (2, 30);
44
  rainbowCycle(0,4,1,1,1,1,1,1,0,0); // make it go through the cycle fairly fast
45
updateStripConfig (3, 20);
46
  rainbowCycle(0,4,1,1,1,1,1,1,0,0); // make it go through the cycle fairly fast
47
updateStripConfig (4, 10);
48
 
49
  // scanner(r,g,b,dly,ri1, ri2, ri3, ri4, ri5, ri6, ri7, ri8)
50
  scanner(127,52,0, 50,1,1,1,1,1,1,0,0); // orange, fast
51
 
52
 // rainbowCycleALL(dly, cyl, ri1, ri2, ri3, ri4, ri5, ri6, ri7, ri8)
53
  rainbowCycleAll(1,4,1,1,1,1,1,1,0,0); // make it go through the cycle fairly fast
54
 
55
 
56
}
57
/*****************************************************************************/
58