 
 // LCD Display
 LiquidCrystal_I2C lcd(0x27, 20, 4);  // set the LCD address to 0x27 for a 20 chars and 4 line display
+static bool LCD_backlight;
 
 
 // Real-time clock

{
    const int default_state = HIGH; /*assume that button is pull-up*/

    if (digitalRead(BUTTON_DOWN) == default_state &&
        digitalRead(BUTTON_OK) == default_state &&
        was_button_pressed(BUTTON_UP)) {
        lcd.backlight();
        return;
    }
    if (digitalRead(BUTTON_UP) == default_state &&
        digitalRead(BUTTON_OK) == default_state &&
        was_button_pressed(BUTTON_DOWN)) {
        lcd.noBacklight();
        return;
    }
}

    print_clock_setup(); // Can be disabled if print_clock() isn't used

    lcd.backlight();
    LCD_backlight = true;
    //lcd.noBacklight();
    lcd.noCursor();
    lcd.noBlink();
