Arduino: how to once save date & time to RTC from __TIME__ and later get from RTC?
Please help with code for Arduino. I have a module DS1307. I'm needed that after the firmware update MC will took the time and date from __ DATE__ and __ TIME__ constants and wrote them to RTC (may be need use some flag in EEPROM?), and the remaining time & date from RTC after other reboots.
In the examples that were libraries Time.h and DS1307RTC.h any excess amount parameters, I got confused.
Please help with code for Arduino. I have a module DS1307. I'm needed that after the firmware update MC will took the time and date from __ DATE__ and __ TIME__ constants and wrote them to RTC (may be need use some flag in EEPROM?), and the remaining time & date from RTC after other reboots.
In the examples that were libraries Time.h and DS1307RTC.h any excess amount parameters, I got confused.