   initLCD(20,4);
   initTimeLord();
 
-  defineProgram(1, SR, 0, -30, 20);
-  defineProgram(2, SR, 0, 20, 21);
-  defineProgram(3, CLOCK, 11, 10, 22);
-  defineProgram(4, SS, 0, -60, 28);
-  defineProgram(5, SS, 0, -2, 18);
-
-  defineRollup(1, 5, 1, 1, 0, 1, false);
-  defineFan(1, 2, 1, false);
-  defineHeater(1, -3, 1);
-  defineHeater(2, -5, 1);
-  defineRamping(5);
+  //defineProgram(1, SR, 0, -30, 20);
+  //defineProgram(2, SR, 0, 20, 21);
+  //defineProgram(3, CLOCK, 11, 10, 22);
+  //defineProgram(4, SS, 0, -60, 28);
+  //defineProgram(5, SS, 0, -2, 18);
+
+  //defineRollup(1, 5, 1, 1, 0, 1, false);
+  //defineFan(1, 2, 1, false);
+  //defineHeater(1, -3, 1);
+  //defineRamping(5);
 
   initVariables();
   initOutputs();

  sunRise[MINUTE] = sunTime[MINUTE];
  //Serial.print("lever du soleil :");Serial.print(sunRise[HEURE]);  Serial.print(":");  Serial.println(sunRise[MINUTE]);

  /* Sunset: */
  myLord.SunSet(sunTime); // Computes Sun Set. Prints:
  myLord.DST(sunTime);
  sunSet[HEURE] = sunTime[HEURE];
  sunSet[MINUTE] = sunTime[MINUTE];
  //Serial.print("coucher du soleil :");  Serial.print(sunSet[HEURE]);  Serial.print(":");  Serial.println(sunSet[MINUTE]);
  getDateAndTime();
  //Ajuste l'heure des programmes en fonction du lever et du coucher du soleil
  for(byte x = 0; x < nbPrograms; x++){
    //Serial.println(x);Serial.println (programType[x]);
    if (programsE(x) == SR){
      P[x][HEURE] = sunRise[HEURE];
      P[x][MINUTE] = sunRise[MINUTE] + srmodE(x);
      convertDecimalToTime(&P[x][HEURE], &P[x][MINUTE]);
      //Serial.print(" Program ");Serial.print(x);Serial.print(" : ");Serial.print(P[x][HEURE]);Serial.print(" : ");Serial.println(P[x][MINUTE]);
    }
    else if (programsE(x) == CLOCK){
      P[x][HEURE] = PROGRAM_TIME(x, HEURE);
      P[x][MINUTE] = PROGRAM_TIME(x, MINUTE);
      //Serial.print(" Program ");Serial.print(x);Serial.print(" : ");Serial.print(P[x][HEURE]);Serial.print(" : ");Serial.println(P[x][MINUTE]);
    }

    else if (programsE(x) == SS){
      P[x][HEURE] = sunSet[HEURE];
      P[x][MINUTE] = sunSet[MINUTE] + ssmodE(x);
      convertDecimalToTime(&P[x][HEURE], &P[x][MINUTE]);
      //Serial.print(" Program ");Serial.print(x); Serial.print(" : "); Serial.print(P[x][HEURE]);Serial.print(" : ");Serial.println(P[x][MINUTE]);

    //Sélectionne le programme en cour
    //Serial.print ("Heure actuelle ");Serial.print(" : ");Serial.print(sunTime[HEURE] );Serial.print(" : ");Serial.println(sunTime[MINUTE]);
    for (byte y = 0; y < (nbPrograms-1); y++){
    //Serial.print ("Programme "); Serial.print(y+1);Serial.print(" : ");Serial.print(P[y][HEURE]);Serial.print(" : ");Serial.println(P[y][MINUTE]);
      if (((sunTime[HEURE] == P[y][HEURE])  && (sunTime[MINUTE] >= P[y][MINUTE]))||((sunTime[HEURE] > P[y][HEURE]) && (sunTime[HEURE] < P[y+1][HEURE]))||((sunTime[HEURE] == P[y+1][HEURE])  && (sunTime[MINUTE] < P[y+1][MINUTE]))){
          program = y+1;
          //Serial.println("YES!");
        }
      }
      //  Serial.print ("Programme ");Serial.print(nbPrograms);Serial.print(" : ");Serial.print(P[nbPrograms-1][HEURE]);Serial.print(" : ");Serial.println(P[nbPrograms-1][MINUTE]);
      if (((sunTime[HEURE] == P[nbPrograms-1][HEURE])  && (sunTime[MINUTE] >= P[nbPrograms-1][MINUTE]))||(sunTime[HEURE] > P[nbPrograms-1][HEURE])||(sunTime[HEURE] < P[0][HEURE])||((sunTime[HEURE] == P[0][HEURE])  && (sunTime[MINUTE] < P[0][MINUTE]))){
        program = nbPrograms;
      //Serial.println("YES!");
      }
    }
  }
}

void setTempCible(){

  initRollupOutput(1, ROLLUP_OPEN[0], ROLLUP_CLOSE[0], LOW);
  initFanOutput(1,FAN[0], LOW);
  initHeaterOutput(1,CHAUFFAGE[0], LOW);

  pinMode(LCDKEYPAD, INPUT_PULLUP);
  pinMode(SAFETY_SWITCH[0], INPUT_PULLUP);
  pinMode(MENU_PIN, INPUT_PULLUP);
  //Affichage LCD
  lcdDisplay();
