 const int WHITE[] = {255, 255, 255};
 const int BAUDRATE = 19200;
 const int SERIAL_BUFFER_LENGTH = 128;
-const int TIMEOUT = 300;  //timeout in seconds before beginning default pattern
+const int SERIAL_CYCLE_LENGTH = 70;
+const int TIMEOUT = 600;  //timeout in seconds before beginning default pattern
 const float numdivs = 60.0; //change this to adjust gradient smoothness
 
 // ---------- GLOBAL VARIABLES ----------

 *  Change SINGLE_LED and the color pins to match your hardware.
 *  You can toggle a handy debug mode with "d".
 */
// TO DO: implement start/stop flashing
// TO DO: implement smooth gradients

#include <stdarg.h>


    Serial.print(gradPerc);
    Serial.println("/1");
    gradientValue(gradcol1, gradcol2, gradPerc, rgb);
    outputColor(rgb);
    gradPerc+=gradPercPerTick;
  }
  else {
    if (gradientLoop) {
      gradPerc = 0;
      if (gradientMode) {
        int temp[3]; //swap 1 and 2
        arrayCopy(temp,gradcol1,3);
        arrayCopy(gradcol1,gradcol2,3);
        arrayCopy(gradcol2,temp,3);
      }
      if (debugMode) { Serial.println("Looping gradient."); }
    } else {
      if (debugMode) { Serial.println("Halting gradient."); }
