aboutsummaryrefslogtreecommitdiffstats
path: root/ds3231.c
diff options
context:
space:
mode:
Diffstat (limited to 'ds3231.c')
-rwxr-xr-xds3231.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/ds3231.c b/ds3231.c
index ae90d36..c7cd797 100755
--- a/ds3231.c
+++ b/ds3231.c
@@ -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();