 }
 
 void powerOn(int r, int g, int b, int wait) {
- // uint8_t a = 0;
   for(int a = 0; a < strip.numPixels()/2; a++) {
     for(int i = 1; i <= 100; i++) {
       double percentage = (double)i/100;

  Serial.begin(9600);
  strip.begin();
  strip.show(); // Initialize all pixels to 'off'
  //powerOn(strip.Color(255, 150, 110), 750);
  powerOn(red, green, blue, 500);
  delay(1000);
  powerOff();
}

void loop() {
  // Some example procedures showing how to display to the pixels:
 // colorWipe(strip.Color(255, 0, 0), 50); // Red
 // colorWipe(strip.Color(0, 255, 0), 50); // Green
 // colorWipe(strip.Color(0, 0, 255), 50); // Blue
  // Send a theater pxel chase in...
 // theaterChase(strip.Color(127, 127, 127), 50); // White
 // theaterChase(strip.Color(127,   0,   0), 50); // Red
 // theaterChase(strip.Color(  0,   0, 127), 50); // Blue
 // 255 152 96
 
 //powerOn(0,100,0, 100);
 //delay(10);
 /*
 powerOn(strip.Color(255, 0, 0), 100);
 powerOn(strip.Color(0, 255, 0), 100);
 powerOn(strip.Color(0, 0, 255), 100);
 powerOn(strip.Color(255, 255, 255), 100);

*/
 // rainbow(20);
 // rainbowCycle(20);
 // theaterChaseRainbow(50);
}

uint8_t splitColor ( uint32_t c, char value )

     // Serial.println(r);
      strip.setPixelColor(a, strip.Color((int)r,(int)g,(int)b));
      strip.setPixelColor(((strip.numPixels() - 1) -a), strip.Color((int)r,(int)g,(int)b));
      //delay(10);
      strip.show();
    }
    delay(1);
  }
}

