   
   lcd.setCursor(0,1);
   lcd.print("NFC OK");
-  //delay(1000);
-  lcd.clear();
-  }
-
-
-
-void encoder()
+  delay(1000);
+  lcd.clear();
+  }
+
+
+
+void encoderMenu()
 {
   int newPosition = myEnc.read();
   if ((newPosition != oldPosition) )
   {
-    
-     
     oldPosition = newPosition;
     if(oldPosition < 0)
     {

{
 byte relativePosition = (abs(oldPosition) / 4) - (cycleMenu * MENUELEMENTS);
  lcd.setCursor(0,0);
  
    
  lcd.print(menuStrings[relativePosition][0]);
  lcd.setCursor(0,1);
  lcd.print(menuStrings[relativePosition][1]);
  encoder();
  
  if (!digitalRead(encButton))
   {
    Serial.println("BOUTON !");

#include <Encoder.h>

#define MENUELEMENTS 2

#define VALMIN 0
#define VALMAX 40

PN532_I2C pn532_i2c(Wire);
PN532 nfc(pn532_i2c);
