 const int ledsNumber = 80; //number of leds on the strip
 CRGB leds[ledsNumber];
 boolean idleStart[ledsNumber];
-CRGB rainbow[ledsNumber];
 
 //color data
 uint32_t distanceColor = 0xFF00FF; //start off with the color being purple

    //plays animation when shooting or collecting
    pass();
  }
  else if (dataRecieved[0] == false && dataRecieved[1] == false && dataRecieved[2] == true && dataRecieved[3] == false){
    //set lights to yellow
    distanceColor = 0xFFFF00;
  }
  else if (dataRecieved[0] == false && dataRecieved[1] == false && dataRecieved[2] == true && dataRecieved[3] == true){
    //signal to other robots
    signal();
  }
  else if (dataRecieved[0] == false && dataRecieved[1] == true && dataRecieved[2] == true && dataRecieved[3] == false){
    //set lights to green
    distanceColor = 0x008000;
  }
  else if (dataRecieved[0] == true && dataRecieved[1] == false && dataRecieved[2] == false && dataRecieved[3] == false){
    //sets the distance color to red
    distanceColor = 0xFF0000;
  } 
  else if (dataRecieved[0] == true && dataRecieved[1] == true && dataRecieved[2] == false && dataRecieved[3] == false){
    //signal to other teams
    celebration();
  } 
  else if (dataRecieved[0] == true && dataRecieved[1] == false && dataRecieved[2] == true && dataRecieved[3] == false){
    //play animation during autonomous
    charging();
  } 
  else if (dataRecieved[0] == true && dataRecieved[1] == true && dataRecieved[2] == true && dataRecieved[3] == false){
    //if the alliance color is blue
    allianceColor = CRGB::Blue;
  } 
  else if (dataRecieved[0] == true && dataRecieved[1] == true && dataRecieved[2] == false && dataRecieved[3] == true){
    //if the alliance color is red
    allianceColor = CRGB::Red;
  } 
  else if (dataRecieved[0] == false && dataRecieved[1] == true && dataRecieved[2] == false && dataRecieved[3] == true){
    //rainbow after fireworks
   // rainbow();
  } 
  //for debugging
  //  Serial.print(dataRecieved[0]);

//    leds[60].r = leds[79].r;
//    leds[60].g = leds[79].g;
//    leds[60].b = leds[79].b;
    FastLED.show();
    delay(30);
  }
}

















