The following code moves the console to LoopbackA. 10 sec. later back to USB.
It works as expected. But we do not have echo on the console and there is no prompt.
Code:
var test='Sacha';
setTimeout(function() {
USB.setConsole();
console.log('Console back to USB');
console.log('Content of test: '+test);
},10000);
console.log('Move console to loopback');
LoopbackA.setConsole();
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.
Hi Gordon
The following code moves the console to LoopbackA. 10 sec. later back to USB.
It works as expected. But we do not have echo on the console and there is no prompt.
Code: