 
     lcd.setCursor(0, row);
     lcd.print(str);
-}
-
-void setup ()
-{
-    #ifdef DEBUG
-    // Open serial port for debug
-    Serial.begin(9600);
-    LOGLN("Setup begin");
-    #endif
-
-    // Configure RTC
-    rtc.enableOscillator(true /* ON */,
-                        false /* disabled if batery-only powered */,
-                        0 /* freq: 1Hz */);
-    rtc.enable32kHz(false);
-    rtc.setClockMode(false); /* set to 24-hour mode */
-
-    // LCD
-    lcd.init();
-
-    // LEDs
-    pinMode(DEBUG_LED, OUTPUT);
-    digitalWrite(DEBUG_LED, LOW);
-
-    lcd.backlight();
-    //lcd.noBacklight();
-    //lcd.noCursor();
-    //lcd.noBlink()
-    lcd.setCursor(5, 0);
-    lcd.print("Witamy!");
-    lcd.setCursor(1, 1);
-    lcd.print("Stacja pogodowa");
-    lcd.setCursor(7, 2);
-    lcd.print("wersja D_0.1");
-
-    // Sleep for setup dht sensors
-    delay(2000);
-
-    // initalize temperature and humidity sensor
-    dht_in.begin();
-    dht_out.begin();
-
-    if (!bmp.begin(3)) { // init pressure sensor with high precission param - 3
-        LOGLN("Cannot initalize BMP (pressure) sensor");
-        error_blink(5);
-        digitalWrite(DEBUG_LED, HIGH); // if error turn debug LED on
-        delay(5000);
-        digitalWrite(DEBUG_LED, LOW);
-    }
-
-    LOGLN("Setup end");
 }
 
 void draw_template()

DS3231 rtc;

// Delay
const int32_t sleep_time = 1000; // 1000ms

// Error value
const int32_t err_val = 200000;



// LEDs
#define DEBUG_LED    13

// Buttons
#define BUTTON_OK     3
#define BUTTON_UP     5
#define BUTTON_DOWN   6

// Temp + Humidity inside
#define DHT_IN_PIN  2
