@Alex - just paste the top 2 lines into the right-hand side of the Web IDE and click 'send to espruino' first...
That's all really promising! I just need to find a nice way of detecting at run-time though!
@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.
@Alex - just paste the top 2 lines into the right-hand side of the Web IDE and click 'send to espruino' first...
That's all really promising! I just need to find a nice way of detecting at run-time though!