I replaced the blink function by logging the current system time to the SD-Card frequently. First I tried to use a 20sec interval, this worked fine (but I just tested a few minutes). When I tried to use it with an hourly interval I just had two entries after 1 day testing. The clock seems to work in a proper way.
After that I did a polyfill for the Espruino related functions and tested my code in Node.js. There I don't have any timing problems, so it must have something to do with deep sleep. Today I am testing the code by using setInterval().
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I replaced the blink function by logging the current system time to the SD-Card frequently. First I tried to use a 20sec interval, this worked fine (but I just tested a few minutes). When I tried to use it with an hourly interval I just had two entries after 1 day testing. The clock seems to work in a proper way.
After that I did a polyfill for the Espruino related functions and tested my code in Node.js. There I don't have any timing problems, so it must have something to do with deep sleep. Today I am testing the code by using setInterval().