 #include <SD.h>
 
 // These are the SPI pins shared among all components
-#define CLK           13    // SPI Clock shared with VS1053, SD card and NFC breakout board 
-#define MISO          12    // Input data from VS1053, SD card and NFC breakout board 
-#define MOSI          11    // Output data to VS1053, SD card and NFC breakout board 
+#define CLK             13    // SPI Clock shared with VS1053, SD card and NFC breakout board 
+#define MISO            12    // Input data from VS1053, SD card and NFC breakout board 
+#define MOSI            11    // Output data to VS1053, SD card and NFC breakout board 
 
 //
 // SETUP MUSIC MAKER SHIELD
 // 
 #include <Adafruit_VS1053.h>
 // These are the pins used for the music maker shield
-#define SHIELD_RESET  -1    // VS1053 reset pin (unused!)
-#define SHIELD_CS      7    // VS1053 chip select pin (output)
-#define SHIELD_DCS     6    // VS1053 Data/command select pin (output)
+#define SHIELD_RESET     -1    // VS1053 reset pin (unused!)
+#define SHIELD_CS         7    // VS1053 chip select pin (output)
+#define SHIELD_DCS        6    // VS1053 Data/command select pin (output)
 
 //
 // SETUP SD CARD
 //
 // These are common pins between breakout and shield
-#define CARDCS         4    // Card chip select pin
+#define CARDCS            4    // Card chip select pin
 // DREQ should be an Int pin, see http://arduino.cc/en/Reference/attachInterrupt
-#define DREQ           3    // VS1053 Data request, ideally an Interrupt pin
+#define DREQ              3    // VS1053 Data request, ideally an Interrupt pin
 // Create shield object
 Adafruit_VS1053_FilePlayer musicPlayer = Adafruit_VS1053_FilePlayer(SHIELD_RESET, SHIELD_CS, SHIELD_DCS, DREQ, CARDCS);
 

  // that's Digital #2 or #3
  // See http://arduino.cc/en/Reference/attachInterrupt for other pins
  if (! musicPlayer.useInterrupt(VS1053_FILEPLAYER_PIN_INT)) {
    Serial.println(F("No interrupt on DREQ pin"));
    for (;;) { digitalWrite(errorLedPin, HIGH); }
  }



// volume control variables for the analog poti
#ifdef VOLUMEPOT
  const byte volPotPin      = A0;      // the analog input pin that we use for the potentiometer
  word lastVolSensorValue   = 0;       // keeps the last read sensor value
#endif

// control buttons definition
#ifdef BUTTONS
  const byte btnLinePin     = A1;      // pin on which the button line (4 buttons) is connected
  
  word btnVal;                        // stores the value we receive on the btnLinePin for comparance with the predefined analog reads for the 4 buttons
  const byte btnValDrift    = 5;       // maximum allowed difference + and - the predefined value for each button we allow
  const word btnPressDelay  = 500;     // delay in milliseconds to prevent double press detection
  unsigned long btnPressTime = 0;     // time in millis() when the button was pressed
  const word btnLightValue  = 1021;    // 33 Ohm  - The value we receive from analog input if the Light On/Off Button is pressed
  const word btnPauseValue  = 933;     // 1K Ohm  - The value we receive from analog input if the Pause Button is pressed
  const word btnNextValue   = 1002;    // 220 Ohm - The value we receive from analog input if the Next (aka Fast Forward) Button is pressed
  const word btnPrevValue   = 991;     // 330 Ohm - The value we receive from analog input if the Previos (aka Prev or Rewind) Button is pressed
  const word minBtnValue    = 800;     // we use this value to determine, whether or not to check the buttons. Set to lower val than smallest of buttons
#endif

// IR remote control 
#ifdef IRREMOTE
  const byte iRRemotePin    = A4;      // the pin the IR remote control diode (receiver) is connected to
  
  // IR Remote control
  // to reduce PROGMEM size I decided to not use the whole decimal value for each button on the remote control but instead do a calculation 
