 //Variable for the other side of the switch 
 int switchPin = A0;
 int switchValue = 0;
+int viconTriggerPin = 6;
 
 void setup()
 {

#include "WS2812_Definitions.h"

#define PIN 4
#define LED_COUNT 30

// Create an instance of the Adafruit_NeoPixel class called "leds".
// That'll be what we refer to from here on...


void loop()
{
  clearLEDs();
  leds.show();
  switchValue = analogRead(switchPin);
  Serial.println(switchValue);
  if(switchValue < 100){
    analogWrite(viconTriggerPin, 20);
    digitalWrite(13, HIGH);
    clearLEDs();
    leds.show();
  }else{
    analogWrite(viconTriggerPin, 200);
    digitalWrite(13,LOW);
      readySetGo(1500);
      // First parameter is the color, second is direction, third is ms between falls
      cascade(MEDIUMSPRINGGREEN, TOP_DOWN, 100);
      clearLEDs();
      leds.show();
      analogWrite(viconTriggerPin, 20);
      delay(3000);
    }
}

