Subversion Repositories Projects

Rev

Blame | Last modification | View Log | RSS feed

/*****************************************************************************/
//                      Space for your remote light effects:
/*****************************************************************************/
// Only between the two lines ( "Your light effect:" ) you are allowed to design your light effects !!
// ( If you like to program a new pattern or sequences, refer to sequences.ino)
/*****************************************************************************/
// Parameter: Colors are defined by the additive RGB color model. 
//            n = LED No on rigger 
//            r = red    ( max. 127)
//            g = green  ( max. 127)
//            b = blue   ( max. 127)
//            dly = delay ( typical: 10 - 50 ) 
//            cyl = cyles ( how many times this sequence will repeat )
//            riX = rigger to set pixel / to show sequence on (x= number of  rigger)
/*****************************************************************************/
/*****************************************************************************/
void loop() {
clearstrip ();
remoteControl();
    counter2 = counter1;

  switch (counter1){
    case 0:
    counter2 = counter1;
    clearstrip ();
/***********   Your light effect:   ************/
  // Set single LED on selected rigger:
  // setLED(n, r, g, b, ri1, ri2, ri3, ri4, ri5, ri6, ri7, ri8)
  setLED(1, 127, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0);
  strip.show();
  delay(450);
  setLED(10, 127, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0);
  strip.show();
  delay(450);
  setLED(10, 0, 127, 0, 0, 0, 0, 1, 1, 0, 0, 0);
  strip.show();
  delay(450);
  setLED(1, 0, 127, 0, 0, 0, 0, 1, 1, 0, 0, 0);
  strip.show();
  delay(450);
  setLED(1, 0, 0, 127, 0, 0, 1, 0, 0, 0, 0, 0);
  strip.show();
  delay(450);
  setLED(10, 0, 0,127, 0, 0, 1, 0, 0, 0, 0, 0);
  strip.show();
  delay(450);
  setLED(10, 127, 127, 127, 0, 0, 0, 0, 0, 1, 0, 0);
  strip.show();
  delay(350);
  setLED(1, 127, 127, 127, 0, 0, 0, 0, 0, 1, 0, 0);
  strip.show();
  delay(450);
  setLED(5, 127, 52, 0, 1, 1, 1, 1, 1, 1, 0, 0);
  setLED(6, 127, 52, 0, 1, 1, 1, 1, 1, 1, 0, 0);
  strip.show();
  delay(450);
  clearstrip ();
  strip.show();
  delay(450);
  setLED(5, 127, 52, 0, 1, 1, 1, 1, 1, 1, 0, 0);
  setLED(6, 127, 52, 0, 1, 1, 1, 1, 1, 1, 0, 0);
  strip.show();
  delay(450);
  setLED(5, 127, 52, 0, 1, 1, 1, 1, 1, 1, 0, 0);
  setLED(6, 127, 52, 0, 1, 1, 1, 1, 1, 1, 0, 0);
  strip.show();
  delay(150);
  setLED(5, 127, 52, 0, 1, 1, 1, 1, 1, 1, 0, 0);
  setLED(6, 127, 52, 0, 1, 1, 1, 1, 1, 1, 0, 0);
  setLED(1, 127, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0);
  setLED(10, 127, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0);
  setLED(10, 0, 127, 0, 0, 0, 0, 1, 1, 0, 0, 0);
  setLED(1, 0, 127, 0, 0, 0, 0, 1, 1, 0, 0, 0);
  setLED(1, 0, 0, 127, 0, 0, 1, 0, 0, 0, 0, 0);
  setLED(10, 0, 0,127, 0, 0, 1, 0, 0, 0, 0, 0);
  setLED(10, 127, 127, 127, 0, 0, 0, 0, 0, 1, 0, 0);
  setLED(1, 127, 127, 127, 0, 0, 0, 0, 0, 1, 0, 0);
  strip.show();
  delay(450);
  setLED(5, 127, 52, 0, 1, 1, 1, 1, 1, 1, 0, 0);
  setLED(6, 127, 52, 0, 1, 1, 1, 1, 1, 1, 0, 0);
  strip.show();
  delay(350);
  setLED(5, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0);
  setLED(6, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0);
  strip.show();
  delay(350);
  setLED(5, 127, 52, 0, 1, 1, 1, 1, 1, 1, 0, 0);
  setLED(6, 127, 52, 0, 1, 1, 1, 1, 1, 1, 0, 0);
  strip.show();
  delay(350);
  setLED(5, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0);
  setLED(6, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0);
  strip.show();
  delay(350);
  setLED(5, 127, 52, 0, 1, 1, 1, 1, 1, 1, 0, 0);
  setLED(6, 127, 52, 0, 1, 1, 1, 1, 1, 1, 0, 0);
  strip.show();
  delay(350);
  clearstrip ();
  strip.show();
  delay(250);
/***********   ------------------   ************/
    break;

    case 1:
    counter2 = counter1;
    clearstrip ();
/***********   Your light effect:   ************/
  // spiralRev( r, g, b, wait)
  spiralRev ( 127, 0, 0, 45);

  // flashingCircle( r, g, b, wait)
  flashingCircle( 127, 127, 127, 10);
  flashingCircle( 127, 90, 127, 15);

  // flashingCircleRev( r, g, b, wait)
  flashingCircleRev(127, 127, 127, 25);

/***********   ------------------   ************/
    break;

    case 2:
    counter2 = counter1;
    clearstrip ();
/***********   Your light effect:   ************/
  // flashLight(dly,cyl,ri1, ri2, ri3, ri4, ri5, ri6, ri7, ri8)
  flashLight(100,3,1,1,1,1,1,1,0,0);
  flashLight(100,3,1,0,1,0,1,0,0,0);
  flashLight(100,3,0,1,0,1,0,1,0,0);

/***********   ------------------   ************/
    break;

    case 3:
    counter2 = counter1;
    clearstrip ();
/***********   Your light effect:   ************/
  // police(dly,cyl,ri1, ri2, ri3, ri4, ri5, ri6, ri7, ri8);
  police(110,1,1,0,0,1,0,0,0,0);
  police(110,1,0,1,0,0,1,0,0,0);
  police(110,1,0,0,1,0,0,1,0,0);
  police(110,1,1,0,0,1,0,0,0,0);
  police(110,1,1,0,1,0,1,0,0,0);
  police(110,1,0,1,0,1,0,1,0,0);
  police(110,1,1,0,1,0,1,0,0,0);
updateStripConfig (3, 20);
  police(110,6,1,1,1,1,1,1,0,0);
updateStripConfig (1, 60);
  police(110,4,1,1,1,1,1,1,0,0);
updateStripConfig (6, 10);

/***********   ------------------   ************/
    break;

    case 4:
    counter2 = counter1;
    clearstrip ();
/***********   Your light effect:   ************/
  // colorChase(r,g,b,dly,ri1, ri2, ri3, ri4, ri5, ri6, ri7, ri8)
  colorChase(127,127,127,80,1,0,0,1,0,0,0,0); // white

  // colorChaseRev(r,g,b,dly,ri1, ri2, ri3, ri4, ri5, ri6, ri7, ri8)
  colorChaseRev(127,127,0,80,0,1,0,0,1,0,0,0); // yellow

  colorChase(0,127,0,80,0,0,1,0,0,1,0,0); // green
  colorChaseRev(0,0,127,80,1,0,0,1,0,0,0,0); // blue
  colorChase(0,127,127,80,1,0,1,0,1,0,0,0); // cyan
  colorChaseRev(127,0,127,80,0,1,0,1,0,1,0,0); // red
  colorChase(127,0,0,80,1,1,1,1,1,1,0,0); // magenta

  // colorWipe(r,g,b,dly,ri1, ri2, ri3, ri4, ri5, ri6, ri7, ri8)
  colorWipe(127,127,127,30,1,0,0,0,0,0,0,0); // blue
  colorWipeREV(127,127,0,30,0,1,0,0,0,0,0,0); // vibrant purple
  colorWipe(0,127,0,30,0,0,1,0,0,0,0,0); // vibrant green
  colorWipeREV(0,0,127,30,0,0,0,1,0,0,0,0); // orange
  colorWipe(0,127,127,30,0,0,0,0,1,0,0,0); // orange
  colorWipeREV(127,0,0,30,0,0,0,0,0,1,0,0); // orange
  colorWipe(0,0,0,30,1,1,1,1,1,1,0,0); // black

/***********   ------------------   ************/
    break;

    case 5:
    counter2 = counter1;
    clearstrip ();
/***********   Your light effect:   ************/

/***********   ------------------   ************/
    break;

    case 6:
    counter2 = counter1;
    clearstrip ();
/***********   Your light effect:   ************/

/***********   ------------------   ************/
    break;

    case 7:
    counter2 = counter1;
    clearstrip ();
/***********   Your light effect:   ************/

/***********   ------------------   ************/
    break;

    case 8:
    counter2 = counter1;
    clearstrip ();
/***********   Your light effect:   ************/

/***********   ------------------   ************/
    break;

    case 9:
    counter2 = counter1;
    clearstrip ();
/***********   Your light effect:   ************/

/***********   ------------------   ************/
    break;

    case 10:
    counter2 = counter1;
    clearstrip ();
/***********   Your light effect:   ************/

/***********   ------------------   ************/
    break;

    case 11:
    counter2 = counter1;
    clearstrip ();
/***********   Your light effect:   ************/

/***********   ------------------   ************/
    break;
  }
}
/*****************************************************************************/