Thanks again, Gordon!
setWatch(function(){ if (process.env.CONSOLE != "USB"){ USB.setConsole(); } else{ LoopbackA.setConsole(); } }, BTN, {repeat:true, edge:"rising", debounce:10 });
Taking your advice, I made it to toggle. But your USB.onData(undefined); solution is a lot nicer !
@aerialist_user6911 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 again, Gordon!
Taking your advice, I made it to toggle.
But your USB.onData(undefined); solution is a lot nicer !