 }
 
 /* crossFade() converts the percentage colors to a 
-*  0-255 range, then loops 1020 times, checking to see if  
+*  0-255 range, then loops 256 times, checking to see if  
 *  the value needs to be updated each time, then writing
 *  the color values to the correct pins.
 */

int calculateStep(int prevValue, int endValue) {
  int step = endValue - prevValue; // What's the overall gap?
  if (step) {                      // If its non-zero, 
    step = 1020/step;              //   divide by 1020
  } 
  return step;
}

int activeSlot = 1;
int altSlot = 0;
int slotLength[3] = { 6, 6, 6};
int wait[3] = {20, 20, 20};

// Set initial color
int redVal = black[0];
int grnVal = black[1]; 
int bluVal = black[2];

int redValp = black[0];
int grnValp = black[1]; 
int bluValp = black[2];

int hold = 0;       // Optional hold when a color is complete, before the next crossFade
int loopCount = 60; // How often should DEBUG report?
int j = 0;          // Loop counter for repeat
