I went through a youtube video on understanding I2C and how I can use it with Arduino. One part of the video that completely went over my head was the part when they are using the register to access hr,min, and sec. I do not understand how he came up with the hex codes the way he did. Here is the data sheet link and his code :
Data sheet link: HTTP 301 This page has been moved
void settime(){// SET TIME
Wire.beginTransmission(B1101000);
Wire.send(0x00);
Wire.send(0x55);//sec
Wire.send(0x59);//min
Wire.send(B01101001);//HOUR
Wire.endTransmission();
}//
I went through a youtube video on understanding I2C and how I can use it with Arduino. One part of the video that completely went over my head was the part when they are using the register to access hr,min, and sec. I do not understand how he came up with the hex codes the way he did. Here is the data sheet link and his code :
Data sheet link: HTTP 301 This page has been moved
void settime(){// SET TIME
Wire.beginTransmission(B1101000);
Wire.send(0x00);
Wire.send(0x55);//sec
Wire.send(0x59);//min
Wire.send(B01101001);//HOUR
Wire.endTransmission();
}//