christophe19
New member
Hello
You will excuse my English, I am French
I have already successfully used the RTC DS1307 on I2C bus. With the help of the library RTClib.h, I could set the RTC time from the time of the PC at the compilation. For that I used: rtc.adjust (DateTime (__ DATE__, __TIME__));
I am now using the RTC DS1302 on serial interface. I am using the DS1302RTC.h library from here http://www.rinkydinkelectronics.com/library.php?id=5, and the arduino time library https://github.com/PaulStoffregen/Time. I have some examples to set the RTC manually with eg setTime (time_t t). I also have solutions to set time through the serial monitor window with the function processSyncMessage (). But neither in the examples provided with the libraries, nor on the internet I do not truve how to put automatic when I run the compilation from the time and date of the PC.
Thank you in advance for your help.
You will excuse my English, I am French
I have already successfully used the RTC DS1307 on I2C bus. With the help of the library RTClib.h, I could set the RTC time from the time of the PC at the compilation. For that I used: rtc.adjust (DateTime (__ DATE__, __TIME__));
I am now using the RTC DS1302 on serial interface. I am using the DS1302RTC.h library from here http://www.rinkydinkelectronics.com/library.php?id=5, and the arduino time library https://github.com/PaulStoffregen/Time. I have some examples to set the RTC manually with eg setTime (time_t t). I also have solutions to set time through the serial monitor window with the function processSyncMessage (). But neither in the examples provided with the libraries, nor on the internet I do not truve how to put automatic when I run the compilation from the time and date of the PC.
Thank you in advance for your help.