   }
   if(!seat->moving)
   {
-    seat->read_buttons();
+    // En attendant que je règle les faux contacts sur les boutons...
+    
+    //seat->read_buttons();
   }
   
   check_rotary();
+  timer1.update();
+}
+
+static void start_backlight()
+{
+  if(light_lcd)
+  {
+    timer1.stop(lcd_event);
+  }
+  else
+  {
+    light_lcd = true ;
+    lcd.setBacklight(light_lcd); //Set Back light turn On
+  }
+  lcd_event = timer1.after(5000, stop_backlight) ;
+}
+
+static void stop_backlight()
+{
+  light_lcd = false ;
+  lcd.setBacklight(light_lcd); //Set Back light turn On
 }
 
 void check_rotary()

      {
         counter --;
      }
      Serial.print("Position: ");
      Serial.println(counter);
    }
    aLastState = aState; // Updates the previous state of the outputA with the current state
}


#include <Wire.h> // Include Wire.h to control I2C
#include <LiquidCrystal_I2C.h> //Download & include the code library can be downloaded below
#include "Timer.h"
 
 

#include <ArduinoJson.h>
#include <seat.h>
#include <shiftreg.h>
