• Is it possible? I tried to set the console to another port, but it stops functioning
    how can I achive that? and if so, could it bridge with different data rates?

  • Yes, you can do something like:

    USB.on("data",function(d) {Serial1.write(d);});
    Serial1.on("data",function(d) {USB.write(d);});
    LoopbackA.setConsole();
    

    And can set up the baud rate with Serial1.setup(...).

    But obviously if you move the console out of the way, it can't be reached again. You could move the console to somewhere like Serial2, where you could then contact Espruino via a USB-TTL dongle though - or you could use a button press to change the baud rate?

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Bridge virtual usb UART with physical serial port

Posted by Avatar for user56134 @user56134

Actions