 }
 
 
+void initialise_eeprom() 
+{
+  /*
+  eeprom_write(0, first);
+  eeprom_write(0, second);
+  eeprom_write(magic_number, magic);
+  */
+}
+
+void run_initialise_setup() {
+
+  decode_results results;
+
+  lcd.clear();
+  lcd.setCursor(0, 0);
+  lcd.print('setup :');
+  lcd.setCursor(0, 1);
+  lcd.print('press any button');
+
+  while(irrecv.decode(&results) != 1 ) { } 
+
+  lcd.setCursor(0, 0);
+  lcd.print('s');
+
+
+/*
+  lcd.setCursor(0, 0);
+
+  if ((magic != magic_number) || ( setUpStatus == 0 ) {
+
+ 
+  lcd.print('0');
+
+  boolean pwrSrc;     // True : connected to TV, False : usb powered
+  boolean wrkMode;    // True : thermostat + TV, False : thermostat
+  boolean startMode;  // if wrkMode == True, True : run TV on/off or channel change,
+                      // False : do nothing indicating a sign on the lcd
+  boolean beepMode;   // True : beep on
+  boolean offMode;    // True : TV on/off, False : channel change
+  int channelGap;     // 1 ~ 5
+  int tvOnTime;       // 30 ~ 120
+  int tvOffTime;      // 5 ~ 20
+
+
+  decode_results results;
+
+  if (irrecv.decode(&results)) {
+    dumpInfo(&results);
+
+  }
+
+ */
+  // initialise_eeprom(); 
+
+}
DeviceAddress insideThermometer;

//
float tempCinside ;
long startMills;
long tv_startMills;

byte termometru[8] =
{
  B00100,

    Serial.println("Failed to read from sensor!");
    return;
  }

  // lcd
  lcd.createChar(1, termometru);
  lcd.setCursor(0, 0);
  lcd.write(1);
  
}


void loop()
{



  /*
   *
    pinMode(SETUP_IN_PIN, INPUT_PULLUP);
    pinMode(WRK_MODE_IN_PIN, INPUT_PULLUP);
    pinMode(DN_IN_PIN, INPUT_PULLUP);
    pinMode(UP_IN_PIN, INPUT_PULLUP);
    pinMode(PIR_IN_PIN, INPUT_PULLUP);
   *
   */
  /*
    int x = digitalRead(WRK_MODE_IN_PIN);
    Serial.println(x);
    //getdalastemp();
    //Serial.println(tempCinside);
    delay(1000);
  */

/*
  decode_results results;

  if (irrecv.decode(&results)) {
    dumpInfo(&results);

  }
*/



}

