 void walk() {
   
   if ( stage == stage_init ){
-    valTop = 200;
+    topBrightness = 200;
     // Pick two colors from the palette. 
     choosePalette();
     c1 = gPalette[gLastPalette];

/*
 * Description: Motion activated stair lights.
 * Author: Dean Montgomery
 * Version: 2.4
 * 
 * Date: Feb 17, 2018
 * 

void chooseEffects(){
  randomSeed(millis());
  r = random8(1, 255);
  //effect = effectFlicker; return;  // temporarily force effect for debugging: effectWalk, effectFlicker, effectFade6
  if ( r >= 0 && r <= 100 ){
    effect = effectWalk;     // My favorite transition with random effect variations
  } else if ( r > 100 && r <= 175 ){
    effect = effectFlicker;  // Candle with embers.
  } else {
    effect = effectFade6;    // hueshift rainbow.
  } 
}

void update_effect(){
  if ( effect == effectWalk ){
    walk();  
  } else if ( effect == effectFlicker ){
    flicker();
  } else if ( effect == effectFade6 ){
    fade();
  }
}
