Ahh - typeof D0 is actually "number" - so I meant actually using it to check whether someone had fed an object in...
typeof D0
"number"
A bit like:
(function() { var _setWatch = setWatch; setWatch = function(a,pin,b) { if ("object"==typeof pin && pin.setWatch) pin.setWatch(a,b); else _setWatch(a,pin,b); }; })()
@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.
Ahh -
typeof D0
is actually"number"
- so I meant actually using it to check whether someone had fed an object in...A bit like: