I've got this working as a module now. Will issue pull request shortly.
Thanks for that bit of conversion into module-style code - not only does it now work as a module, I think I now understand how to make my code into modules in the future.
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've got this working as a module now. Will issue pull request shortly.
Thanks for that bit of conversion into module-style code - not only does it now work as a module, I think I now understand how to make my code into modules in the future.