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...
© Espruino, powered by microcosm.
Report a problem