 }
 
 void enableAmplifier(boolean enable) {
+  pinMode(AMPLIFIER_ENABLE_PIN, OUTPUT);
   digitalWrite(AMPLIFIER_ENABLE_PIN, enable);
 }
 
 void enableNfc(boolean enable) {
-  digitalWrite(NFC_RESET_PIN, enable);
+  pinMode(NFC_RESET_PIN, OUTPUT);
   if (enable) {
-    nfc.SAMConfig();
-  }
-}
-
-
+    Serial.println("Enable NFC");
+    digitalWrite(NFC_RESET_PIN, HIGH);
+    configNfc();
+  } else {
+    Serial.println("Disable NFC");
+    digitalWrite(NFC_RESET_PIN, LOW);    
+  }
+}
+
+

}

void enablePlayer(boolean enable) {
  if (enable) {
    digitalWrite(MUSIC_RESET_PIN, HIGH);
    player.reset();

    if (state == PLAY_SELECTED) stopPlaying();
    nextTimeoutTick = 0; // no timeout during playing
    nextNfcTick = 0; // no nfc reading during playing
    enableNfc(false);
    enablePlayer(true);
    onStartFirstTrack(index);
    enableAmplifier(!headphone);
