#include"ADC.h"
#include"lcd.h"
#include"i2c.h"
#include"RTC.h"
#include<string.h>
char sec=23;
char mints=10;
char hrs=9;
char dt=28;
char mnth=06;
char yr=24;
char str[16];
float temp;
void setup()
{
LCD_init();
ADC_init();
RTC_address(sec,mints,hrs,dt,mnth,yr);
}
void loop()
{
temp = convertToCelcius(AnalogRead());
sprintf(str,"%02d C",(short)temp);
GET_TIME_DATE();
DEC_TO_STR();
LCD_cmd(0x8B);
LCD_string(str);
LCD_cmd(0xc0);
LCD_string(TIME);
LCD_cmd(0x80);
LCD_string(DATE);
}