It would be better to set the watch only once (as well as some other setup tasks), instead of setting it in every run (as it is done in this .js module).
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.
To fix the out-of-memory error, replace these lines (refering to post #3)
with these lines
It would be better to set the watch only once (as well as some other setup tasks), instead of setting it in every run (as it is done in this .js module).