In case anyone is interested in this pet project of mine. The "dev" branch now includes module loading (from espurino.com/modules). It isn't recursive so require statements within modules themselves are not handled - but i guess they could be.
There's a very contrived example in the esp.js file which sets and reads servo values whilst stating the time at which the reading was taken - it autoloads the clock and servo modules.
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.
In case anyone is interested in this pet project of mine. The "dev" branch now includes module loading (from espurino.com/modules). It isn't recursive so require statements within modules themselves are not handled - but i guess they could be.
There's a very contrived example in the esp.js file which sets and reads servo values whilst stating the time at which the reading was taken - it autoloads the clock and servo modules.