 uint8_t brightness;
 uint8_t loopCount;
 bool receivedConditions=false;
-
+uint8_t offSeconds=10;
+uint8_t onSeconds=4;
 void setAllPixelsRGB(int r, int g, int b){
   for (int i=0; i< PIXELS_IN_STRIP; i++){
     pixels[i]=((uint32_t)r << 16) | ((uint32_t)g <<  8) | b;

   brightness=0;
   updateStripWithBrightness(brightness);
    if (Serial.available()<SPOT_REPORT_SIZE){       //don't sleep or fade if you have another report waiting.
     Bean.sleep(OFF_MS);
   }
      
}

void  setAllPixels(uint32_t p){
  for (int i=0; i< PIXELS_IN_STRIP; i++){
    pixels[i]=p;
  }
}
void setNPixelsAtIndex(uint8_t index, uint8_t n, uint32_t color){
    for (int i=index; i< index+n; i++){
    pixels[i]=color;
  }
}

