Thanks! It's really good to have broken this out into an Object of its own...
Do you think you could try packaging it up into a module? Instructions here.
I guess it might be handy to rename SWBtn.prototype.d to SWBtn.prototype.disable... It might make code using it a bit more readable...
SWBtn.prototype.d
SWBtn.prototype.disable
@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.
Thanks! It's really good to have broken this out into an Object of its own...
Do you think you could try packaging it up into a module? Instructions here.
I guess it might be handy to rename
SWBtn.prototype.d
toSWBtn.prototype.disable
... It might make code using it a bit more readable...