-
• #2
@DaveNI thanks! That's a really neat idea - one of the first uses of
echo
I've seen so far as well.Just to say that in the GitHub version of Espruino (1v71 when it is released) I've stopped it resetting the RTC on power up/reset - so once you've set the Espruino clock it'll keep time (as long as it's powered!) even after a hard reset.
The project I am working on needs the Clock to be set to the current Date/Time. Its a bit of a pain doing this every time the device restarts so I now use the following batch file (setClock.bat) from my desktop (assumes COM5 & instance of Clock called clk):
(Ensure the IDE isn't connected)
Don't ask me to explain it in any detail (used some googled code!)
Maybe there is an easier way?