 /*
  * Description: Motion activated stair lights.
  * Author: Dean Montgomery
- * Version: 2.1
- * Date: Feb 8, 2016
+ * Version: 2.2
+ * 
+ * Date: Feb 11, 2016
  * 
  * 2 PIR sesors at the top and bottom of the stairs.
  * WS28012B Addressable RGB lights - 2 LEDs on each stair - This spread out the strip of 30 and left 2-pairs for spare bulbs.

void readSensors(){
  if ( digitalRead(PIN_PIR_UP) == HIGH ){  // Walk Down.
    previousOffMillis = currentMillis;
    if ( stage == off ){
      chooseEffects();
      stage = stage_init;

void chooseEffects(){
  randomSeed(millis());
  r = random8(1, 255);
  //effect = efade6;
  //return;
  if ( r >= 0 && r <= 100 ){
    effect = ewalk;  // My favorite transition with random effect variations
  } else if ( r > 100 && r <= 175 ){
