• Glad it's sorted!

    You could maybe do something like:

    USB.onData(function (e) { 
      USB.setConsole(); 
      USB.onData(undefined);
    });
    

    So that only the first character received will call the callback... But if you're not using the button for anything, it's a nice easy way of working. I guess you could make it toggle back and forth? You can check what the current console device is using process.env.CONSOLE

About

Avatar for Gordon @Gordon started