 float temp1 = 0;
 float oldtemp1 = 0;
 
+byte bkslash[8] = {
+  B00000,
+  B10000,
+  B01000,
+  B00100,
+  B00010,
+  B00001,
+  B00000,
+};
+
+char anim[] = {'-',0,'|','/'};
+byte anim1State = 0;
+unsigned long anim1StateEnd = millis();
+#define ANIM_STATE_COUNT  4
+#define ANIM_DURATION     200
+
 ConfigEE cfg;
 
 void setup(void) {
   Serial.begin(115200);
+  
   lcd = new LiquidCrystal(LCD_RS, LCD_E, LCD_D4, LCD_D5, LCD_D6, LCD_D7);
+  lcd->createChar(0, bkslash);
+  
   temps1 = new TempSensor(TEMPS_1);
   btnDown = new Button(BTN_DOWN);
   btnUp = new Button(BTN_UP);


}



  // OPERATE RELAY1 ------------------------------
  if (cfg.data.cooling) {                       // if operation is COOLING
    if (relay1->isOn()) {                       // if cooling is ON
      if (temp1 < cfg.data.temp-cfg.data.eps){  // then keep it on until temperature is lower than SET minus EPS
        relay1->off();                          // then turn it OFF
        clearOp1();
      }
        
    } else {                                        // if cooling is OFF
      if (temp1 > cfg.data.temp+cfg.data.eps)   // and current temperature is higer than SET plus EPS
        relay1->on();                           // then turn cooling ON
    }    
  }  else {                                     // if operation is HEATING
    if (relay1->isOn()) {                       // if heating is ON
      if (temp1 > cfg.data.temp+cfg.data.eps){  // then keep it ON until temperature is higher than SET plus EPS
        relay1->off();                          // then turn it OFF
        clearOp1();
      }
        
    } else {                                        // if heating is OFF
      if (temp1 < cfg.data.temp-cfg.data.eps)   // and current temperature is lower than SET minus EPS
