 
 LiquidCrystal lcd(8, 13, 12, 11, 10, 9);
 
-Encoder myEnc(6, 5); // a changer pour 2 et 3 -> interrupts
-
-uint8_t readLedPin = 2;
-uint8_t writeLedPin = 3;
-uint8_t encButton = 7;
+Encoder myEnc(2, 3);
+
+uint8_t readLedPin = 7; //rouge
+uint8_t writeLedPin = 6; //vert
+uint8_t encButton = 5;
 long oldPosition  = -999;
 bool buzy = false;
 
-byte KeyA_List[][6] =
+byte KeyA_List_D3[][6] =
 {
   { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff },  // Sector 0
   { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff },  // Sector 1

          else
          {
            Serial.println("Authentication error");
          }
        }
        // If we're still not authenticated just skip the block

        {
          // Starting of a new sector ... try to to authenticate
          Serial.print("------------------------Sector ");Serial.print(currentblock/4, DEC);Serial.println("-------------------------");
           Serial.print("keys used:");
           for (uint8_t i = 0; i < 5; i++)
           {
            Serial.print(" ");Serial.print(KeyA_List_D3[currentblock/4][i], HEX);
           }
           Serial.println("");
           
          if (currentblock == 0)
          {
              success = nfc.mifareclassic_AuthenticateBlock (uid, uidLength, currentblock, 1, KeyA_List_D3[0]);
              buzy = true;
          }
          else
          {
              success = nfc.mifareclassic_AuthenticateBlock (uid, uidLength, currentblock, 1, KeyA_List_D3[currentblock/4]);
          }
          if (success)
          {
