Skip to content

using another serial port #1092

Answered by SuperMaxusa
progrium asked this question in Q&A
Discussion options

You must be logged in to vote

See #530 (comment)

    var emulator = new V86({
        uart1: true,
        ...
    });

    emulator.add_listener("serial0-output-byte", function(byte)
    {
        console.log("ttyS0: ", String.fromCharCode(byte));
    });

    emulator.add_listener("serial1-output-byte", function(byte)
    {
        console.log("ttyS1: ", String.fromCharCode(byte));
    });

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by progrium
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants