You should be able to do LoopbackA.setConsole () on onInit - LoopbackA goes to LoopbackB and vice versa. If you've explicitly set the console then it shouldn't move when USB is plugged in, so I guess you could make a handler for USB.onData that would swap the console back to USB when you pressed a button.
That way you could get USB comms when you plug in, and after power cycling/saving it would go back to being on Loopback...
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.
You should be able to do
LoopbackA.setConsole ()
on onInit - LoopbackA goes to LoopbackB and vice versa. If you've explicitly set the console then it shouldn't move when USB is plugged in, so I guess you could make a handler for USB.onData that would swap the console back to USB when you pressed a button.That way you could get USB comms when you plug in, and after power cycling/saving it would go back to being on Loopback...