diff options
Diffstat (limited to 'ds3231.c')
-rwxr-xr-x | ds3231.c | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -77,20 +77,6 @@ void Set_Time() { I2C_Master_Stop();
}
-void Set_Time_Date() {
- I2C_Master_Start(); // Start I2C
- I2C_Master_Write(0xD0); // RTC Chip address
- I2C_Master_Write(0); // send register address
- I2C_Master_Write(DEC_2_BCD(sec)); //update sec
- I2C_Master_Write(DEC_2_BCD(min)); //update min
- I2C_Master_Write(DEC_2_BCD(hour)); //update hour
- I2C_Master_Write(1); //ignore updating day
- I2C_Master_Write(DEC_2_BCD(date)); //update date
- I2C_Master_Write(DEC_2_BCD(month)); //update month
- I2C_Master_Write(DEC_2_BCD(year)); //update year
- I2C_Master_Stop();
-}
-
void Update_Current_Date_Time() {
//START to Read
I2C_Master_Start();
|