using another serial port #1092
-
Does v86 only expose COM1? It seems like it should be able to support using a "serial1" along with "serial0" but I don't think it does? |
Beta Was this translation helpful? Give feedback.
Answered by
SuperMaxusa
Jul 26, 2024
Replies: 1 comment
-
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));
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
progrium
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See #530 (comment)