Closed mauroForlimpopoli closed 2 months ago
You'll need to add the default Serial port to the device
global. You can do that in the Moddable Six and Moddable Six CDC host providers by adding this Serial
section between the I2C
and SPI
sections:
Serial: {
default: {
io: Serial,
port: 1,
receive: 44,
transmit: 43
}
},
We'll update the repository with this change.
How can I set a RTS and CTS port on Moddable Six ?
The Serial
object does not currently support hardware flow control (on any device).
Hi Peter, I did it and it's working PS: I change positions and it works anyway receive: 2, transmit: 3
Thank you
Thanks for confirming.
I change positions and it works anyway receive: 2, transmit: 3
If you are using other pins, you normally would do that in your code rather than editing the device provider:
new device.io.Serial({
receive: 2,
transmit: 3,
port; 1,
...
}
Good morning, I'm running the example https://github.com/Moddable-OpenSource/moddable/blob/24e3e54fd3b66379c1f91ad92969c99f941ff4cf/examples/io/serial/continuouswrite/main.js on Moddable Six
This is the error on the xbug
How can I solve it? How can I set a RTS and CTS port on Moddable Six ?
regards