Look pretty internal to me... I tried to do the loop as close as possible, may be too close. Give this variation a shot:
, _send: function(c) { console.log("About to send char",c); setTimeout(function(_){ kb.tap(kb.KEY[c],0,_._sent.bind(_)); },1,this); }
What it does: It decouples the sending form 'current JS thread'. @Gordon may know if this does matter or not regarding breaking the 'call-chain'.
@allObjects 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.
Look pretty internal to me... I tried to do the loop as close as possible, may be too close. Give this variation a shot:
What it does: It decouples the sending form 'current JS thread'. @Gordon may know if this does matter or not regarding breaking the 'call-chain'.