The way we usually do it in modules is:
// your other stuff exports.connect = function (p1,p2,p3,p4) { return new stepperClass(p1,p2,p3,p4); }
then:
var stepper = require("stepper").connect(...);
There's a template on the website here that you might find handy.
never mind ;-)
@Gordon started
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.
The way we usually do it in modules is:
then:
There's a template on the website here that you might find handy.