   return found>index ? data.substring(strIndex[0], strIndex[1]) : "";
 }
 
-void updateColor(uint32_t instrumentColor, uint32_t effectColor) {
+void updateLED() {
   for(uint16_t i=0; i<strip.numPixels(); i++) {
     if(i<TOTAL_PIXELS/4){
-      strip.setPixelColor(i, instrumentColor);
+      strip.setPixelColor(i, instrument_color);
     }
     else if(i<TOTAL_PIXELS/2){
-      strip.setPixelColor(i, effectColor);
+      strip.setPixelColor(i, effect_color);
     }
     else if(i<TOTAL_PIXELS*3/4){
-      strip.setPixelColor(i, instrumentColor);
+      strip.setPixelColor(i, instrument_color);
     }
     else {
-      strip.setPixelColor(i, effectColor);
+      strip.setPixelColor(i, effect_color);
     }
-    
   }
   strip.show();
 }

String input_str;   // 文字列格納用
int i = 0;  // 文字数のカウンタ

void setup() {
  strip.begin();
  strip.show(); // Initialize all pixels to 'off'

}
 
// Slightly different, this makes the rainbow equally distributed throughout
//void rainbowCycle(uint8_t wait) {
//  uint16_t i, j;
// 
//  for(j=0; j<256*5; j++) { // 5 cycles of all colors on wheel
//    for(i=0; i< strip.numPixels(); i++) {
//      strip.setPixelColor(i, Wheel(((i * 256 / strip.numPixels()) + j) & 255));
//    }
//    strip.show();
//    delay(wait);
//  }
//}
 
// Input a value 0 to 255 to get a color value.
// The colours are a transition r - g - b - back to r.
