void getRTC(){
uint8_t myhour,mymins,mysecs,myday,mymonth,myyear;
Wire.begin();
Wire.beginTransmission(0x68); //read the RTC.
Wire.write(0);
Wire.endTransmission(false); //don't release the bus
Wire.requestFrom(0x68,8);
uint8_t temp = Wire.read();
Serial.println(temp,HEX);
temp&=0x7f;
mysecs=BCD2dec(temp);
mymins=BCD2dec(Wire.read());
myhour=BCD2dec(Wire.read());
Wire.read(); //location[3] not used = weekday
myday=BCD2dec(Wire.read());
mymonth=BCD2dec(Wire.read());
myyear=BCD2dec(Wire.read())+2000;
setTime(myhour,mymins,mysecs,myday,mymonth,myyear);
Serial.print("Hour =");Serial.println(myhour);
Serial.print("min =");Serial.println(mymins);
Serial.print("Sec =");Serial.println(mysecs);
}