     case 221 :
       if (y < Nbitems) {
         inc = y;
-        switchmenu(2211);
+        switchmenu(222);
       }
       else {
         switchmenu(2);
       }
       break;
-    //-------------------------------SelectMenu2211-----------------------------------------
+    //-------------------------------SelectMenu222-----------------------------------------
     //SET ROTATION TIME
-    case 2211 :
+    case 222 :
       if (y < Nbitems) {
         rot = y*2;
-        switchmenu(22111);
+        switchmenu(223);
       }
       else {
         switchmenu(2);
       }
       break;
-      //-------------------------------SelectMenu22111-----------------------------------------
+      //-------------------------------SelectMenu223-----------------------------------------
       //SET PAUSE TIME
-      case 22111 :
+      case 223 :
         switch (y) {
-          case 1: p = 5; switchmenu(221111);break;
-          case 2: p = 15; switchmenu(221111); break;
-          case 3: p = 20; switchmenu(221111); break;
-          case 4: p = 30; switchmenu(221111); break;
-          case 5: p = 45; switchmenu(221111); break;
-          case 6: p = 60; switchmenu(221111); break;
-          case 7: p = 75; switchmenu(221111); break;
-          case 8: p = 90; switchmenu(221111); break;
-          case 9: p = 120; switchmenu(221111); break;
+          case 1: p = 5; switchmenu(224);break;
+          case 2: p = 15; switchmenu(224); break;
+          case 3: p = 20; switchmenu(224); break;
+          case 4: p = 30; switchmenu(224); break;
+          case 5: p = 45; switchmenu(224); break;
+          case 6: p = 60; switchmenu(224); break;
+          case 7: p = 75; switchmenu(224); break;
+          case 8: p = 90; switchmenu(224); break;
+          case 9: p = 120; switchmenu(224); break;
           case 10: switchmenu(2); break;
           }
         break;
-      //-------------------------------SelectMenu221111-----------------------------------------
+      //-------------------------------SelectMenu224-----------------------------------------
       //SET MODIFICATOR
-      case 221111 :
+      case 224 :
         if (y < Nbitems) {
           mod = y-11;
-          switchmenu(2211111);
+          switchmenu(225);
         }
         else {
           switchmenu(2);
         }
       break;
-      //-------------------------------SelectMenu221111-----------------------------------------
+      //-------------------------------SelectMenu224-----------------------------------------
       //SET HYSTERESIS
-      case 2211111 :
+      case 225 :
         if (y < Nbitems) {
           hys = y;
-          switchmenu(22111111);
+          switchmenu(226);
         }
         else {
           switchmenu(2);
         }
       break;
-      //-------------------------------SelectMenu221111-----------------------------------------
+      //-------------------------------SelectMenu224-----------------------------------------
       //SET SAFETY AND UPDATE EEPROM
-      case 22111111 :
+      case 226 :
         switch (y){
           case 1: sfty = true;defineRollup(nr,inc,rot,p,mod,hys,sfty); switchmenu(2);break;
           case 2: sfty = false;defineRollup(nr,inc,rot,p,mod,hys,sfty); switchmenu(2);break;

//*********************VARIABLES GLOBALES*************
//nombre d'items activés
const int nbPrograms = 5;              //Nombre de programmes de température
boolean rollups[1];
boolean heaters[1];
boolean fans[1];
boolean fanSafety[sizeof(fans)];
boolean rollupSafety[sizeof(rollups)];

//Sonde de température
boolean failedSensor = false;

//Poisition des Rollups
volatile byte incrementCounter[sizeof(rollups)];               //positionnement des rollups
boolean firstOpening[sizeof(rollups)];

//Programmes horaire
byte sunTime[6];                      //données de l'horloge
byte program;                         //Programme en cour
byte lastProgram;                    //Dernier programme en cour


#define DS18B20
//define SHT1X

#define NBROLLUPS 1
#define NBHEATERS 1
#define NBFANS 1
#define NBPROGRAMS 5

//Select your input pins
#define LCDKEYPAD A0
#define MENU_PIN 2
const byte SAFETY_SWITCH[NBROLLUPS] = {3};

//Select your output pins
const byte ROLLUP_OPEN[NBROLLUPS] = {4};
const byte ROLLUP_CLOSE[NBROLLUPS] = {5};
const byte CHAUFFAGE[NBHEATERS] = {6};
const byte FAN[NBFANS] = {7};

//*********************OBJETS************************
//---------------------LCD-----------------
