Hello all,
I need to set the Date and Time of my system. So, I've followed this example: https://github.com/PaulStoffregen/Time/blob/master/examples/TimeTeensy3/TimeTeensy3.ino
I've used Processing, to send the data through Serial port.
The function digitalClockDisplay() (found in the example) show that the previous time (compilation time) is correct and the time sent through Serial is also correct. But when I turn off the system, the RTC reset to the previous value (compilation time).
Do I need to change the RTC init code? https://github.com/PaulStoffregen/cores/blob/master/teensy3/mk20dx128.c#L1098
TL;DR: How do I overwrite RTC value, defined in compilation?
Thank you.
I need to set the Date and Time of my system. So, I've followed this example: https://github.com/PaulStoffregen/Time/blob/master/examples/TimeTeensy3/TimeTeensy3.ino
I've used Processing, to send the data through Serial port.
The function digitalClockDisplay() (found in the example) show that the previous time (compilation time) is correct and the time sent through Serial is also correct. But when I turn off the system, the RTC reset to the previous value (compilation time).
Do I need to change the RTC init code? https://github.com/PaulStoffregen/cores/blob/master/teensy3/mk20dx128.c#L1098
TL;DR: How do I overwrite RTC value, defined in compilation?
Thank you.