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, powered by microcosm.
Report a problem