 	readDS3231time(&second, &minute, &hour, &dayOfWeek, &dayOfMonth, &month, &year);
 }
 
-
-void DisplayTimeAndDateOnSerialMonitor()
-{
-	Serial.print(hour, DEC);
-	Serial.print(":");
-	if (minute < 10)
-	{
-		Serial.print("0");
-	}
-	Serial.print(minute, DEC);
-	Serial.print(":");
-	if (second < 10)
-	{
-		Serial.print("0");
-	}
-	Serial.print(second, DEC);
-	Serial.print(" ");
-	Serial.print(dayOfMonth, DEC);
-	Serial.print("/");
-	Serial.print(month, DEC);
-	Serial.print("/");
-	Serial.print(year, DEC);
-	Serial.print(" Day of week: ");
-	switch (dayOfWeek) {
-	case 1:
-		Serial.println("Sunday");
-		break;
-	case 2:
-		Serial.println("Monday");
-		break;
-	case 3:
-		Serial.println("Tuesday");
-		break;
-	case 4:
-		Serial.println("Wednesday");
-		break;
-	case 5:
-		Serial.println("Thursday");
-		break;
-	case 6:
-		Serial.println("Friday");
-		break;
-	case 7:
-		Serial.println("Saturday");
-		break;
-	}
-}
-
-
 void RefreshLCD()
 {
 	lcd.clear();
-	PrintOnLCD(hour);
+	PrintTimeValueOnLCD(hour);
 	lcd.print(":");
-	PrintOnLCD(minute);
+	PrintTimeValueOnLCD(minute);
 	lcd.print(":");
-	PrintOnLCD(second);
-	lcd.print("   ");
-	if (alarmActive)
+	PrintTimeValueOnLCD(second);
+	lcd.print("  ");
+	if (backlightManuallyTurnedOff)
 	{
 		lcd.print("!");
+	}
+	else
+	{
+		lcd.print(" ");
+	}
+	if (activeLED == LEDStrip12V)
+	{
+		lcd.write(byte(0));
 	}
 	else
 	{

{
	alarmOn = !alarmOn;
	RefreshLCD();
}

void BacklightForButtonPress()
{
	backlightOnForButton = true;
	pushedButtonAt = millis();
}

void ChangeBrightness(int step) {

#include <IRremote.h>
#include <Wire.h>
#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 10, 2, 8, 7);
int RECV_PIN = 14;
IRrecv irrecv(RECV_PIN);
decode_results results;

byte second, minute, hour, dayOfWeek, dayOfMonth, month, year; // Values to read from DS3231 RTC Module
byte alarmHour = 6;
byte alarmMinute = 0;
bool alarmOn = true;
bool alarmActive = false;
long lastTimeReading = 0;

const int backlightLCD = 9;

const int LEDStrip12V = 6;
const int LEDStrip6V = 5;

int activeLED = LEDStrip12V;

long alarmTurnedOnAt = 0;
long alarmDuration = 14400000; //4 hours.
long alarmStepTime = 0;

int brightness = 0;
int softLightBrightness = 0;
int brightnessStep = 51;
int smallBrightnessStep = 10;
bool lightOn = false;

int backlightBrightnessForNight = 20;
int backlightBrightnessForDay = 255;
bool isNight = false;
bool backlightManuallyTurnedOff = false;

#define DS3231_I2C_ADDRESS 0x68
// Convert normal decimal numbers to binary coded decimal
