   FastLED.addLeds<CHIPSET, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS).setCorrection(UncorrectedColor);
   FastLED.setBrightness(200);
 }
-
-bool isButtonPressed()
-{
-  int reading = digitalRead(PIN_MODE);
-  if (reading != lastButtonState) {
-    lastDebounceTime = millis();
-  }
-
-  if ((millis() - lastDebounceTime) > debounceDelay) {
-    if (reading != buttonState) {
-      buttonState = reading;      
-    }
-
-    lastButtonState = reading;
-
-    return buttonState == HIGH;
-  }
-
-  lastButtonState = reading;
-
-  return false;
-}
-
-uint16_t XY( uint8_t x, uint8_t y)
-{
-  uint16_t i;
-
-  if ( kMatrixSerpentineLayout == false) {
-    i = (y * kMatrixWidth) + x;
-  }
-
-  if ( kMatrixSerpentineLayout == true) {
-    if ( y & 0x01) {
-      // Odd rows run backwards
-      uint8_t reverseX = (kMatrixWidth - 1) - x;
-      i = (y * kMatrixWidth) + reverseX;
-    } else {
-      // Even rows run forwards
-      i = (y * kMatrixWidth) + x;
-    }
-  }
-
-  return i;
-}
-
-uint16_t XYsafe( uint8_t x, uint8_t y)
-{
-  if ( x >= kMatrixWidth) return -1;
-  if ( y >= kMatrixHeight) return -1;
-  return XY(x, y);
-}
-
-int pressCount = 0;
-
-char curFileName[12] = "";
-File myFile;
-long previousMillis = 0; 
-long interval = 1000;
-int currentFileIndex = 0;
 
 void loop()
 {

        pch = strtok (NULL, ",");
      }

      set_led_rgb(val[0], val[1], val[2], val[3], val[4]);
      
      line = "";
    }
  }

  myFile.close();

  return 0;
}

void ShowGoomba()


void RainbowA()
{
  FastLED.clear();
  uint32_t ms = millis();
  int32_t yHueDelta32 = ((int32_t)cos16( ms * (27/1) ) * (350 / kMatrixWidth));
  int32_t xHueDelta32 = ((int32_t)cos16( ms * (39/1) ) * (310 / kMatrixHeight));
  DrawOneFrame( ms / 65536, yHueDelta32 / 32768, xHueDelta32 / 32768);
  FastLED.show(); 
}

void DrawOneFrame( byte startHue8, int8_t yHueDelta8, int8_t xHueDelta8)
{
  FastLED.clear();
  byte lineStartHue = startHue8;
  for( byte y = 0; y < kMatrixHeight; y++) {
    lineStartHue += yHueDelta8;
