    myGLCD.update();
 }  
   
+void draw_wait(byte x, byte y, int waitcount ) {
+  for (byte i=x; i<x+6; i++) {
+    for(byte j=y; j<y+6; j++) {
+      myGLCD.clrPixel(i,j);
+    }
+  }
+  if (waitcount > 1) myGLCD.setPixel(x+3,y+2);
+  if (waitcount > 2) myGLCD.setPixel(x+3,y+3);
+  if (waitcount > 3) myGLCD.setPixel(x+2,y+3);
+  if (waitcount > 4) myGLCD.setPixel(x+2,y+2);
+  if (waitcount > 5) myGLCD.setPixel(x+3,y  );
+  if (waitcount > 6) myGLCD.setPixel(x+4,y+1);
+  if (waitcount > 7) myGLCD.setPixel(x+5,y+2);
+  if (waitcount > 8) myGLCD.setPixel(x+5,y+3);
+  if (waitcount > 9) myGLCD.setPixel(x+4,y+4);
+  if (waitcount > 10) myGLCD.setPixel(x+3,y+5);
+  if (waitcount > 11) myGLCD.setPixel(x+2,y+5);
+  if (waitcount > 12) myGLCD.setPixel(x+1,y+4);
+  if (waitcount > 13) myGLCD.setPixel(x  ,y+3);
+  if (waitcount > 14) myGLCD.setPixel(x  ,y+2);
+  if (waitcount > 15) myGLCD.setPixel(x+1,y+1);
+  if (waitcount > 16) myGLCD.setPixel(x+2,y  );
+}
+
 void loop(void) {
   if (network.update()) {
     network_busy = true;
     stayawakeloopcount=0;
   } 
   if ( ! network_busy ) {
-    sensors.requestTemperatures(); // Send the command to get temperatures
-    temp=sensors.getTempCByIndex(0);
-    draw_temp(temp);
+    // save energy get the temperature every 10. loop (with sleeptime 1min => every 10min)
+    if (free_loop_counter == 11) get_temp();
   }
   if ( network.available() ) {
     network_busy = true;

}

void draw_battery(int x, int y, float u) {
  // Drawing a symbol of an battery
  // Size: 10x4 pixel
  // at position x and y
  for (byte i=x+2; i <= x+9; i++) {
    myGLCD.setPixel(i,y); 
    myGLCD.setPixel(i,y+4); 
  }
  myGLCD.setPixel(x,y+1); 
  myGLCD.setPixel(x,y+2); 
  myGLCD.setPixel(x,y+3); 
  myGLCD.setPixel(x+1,y+1); 
  myGLCD.setPixel(x+1,y+2); 
  myGLCD.setPixel(x+1,y+3); 
  myGLCD.setPixel(x+9,y+1); 
  myGLCD.setPixel(x+9,y+2); 
  myGLCD.setPixel(x+9,y+3); 
  myGLCD.clrRect(x+2,y+1,x+8,y+3);
  if ( u > U1 ) draw_battery_filled(x+8,y+1); else myGLCD.drawLine(x+3,y,x+7,y+4);
  if ( u > U2 ) draw_battery_filled(x+6,y+1);
  if ( u > U3 ) draw_battery_filled(x+4,y+1);

  myGLCD.setContrast(65);
  myGLCD.clrScr();
  sensors.begin(); 
  get_temp();
  draw_battery(BATT_X0, BATT_Y0,read_battery_voltage());
  //####
  // end aditional init
  //####
