aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xds3231.c14
-rwxr-xr-xds3231.h1
2 files changed, 0 insertions, 15 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();
diff --git a/ds3231.h b/ds3231.h
index 7e65e7c..c6a326a 100755
--- a/ds3231.h
+++ b/ds3231.h
@@ -6,6 +6,5 @@ void Read_Alarms_Temp(void);
void Set_Date(void);
void Set_DayOfWeek(void);
void Set_Time(void);
-void Set_Time_Date(void);
void Update_Current_Date_Time(void);
void Write_Alarms(void); \ No newline at end of file