What are the options for using serial ports with Arcade?
Serial port
For now, go to pxt.json, edit as text and add "serial": "*"
in the list of dependencies.
Note that codal’s serial is meant for slow speeds. If you try to run it above 115k (or maybe even at) you may loose some characters. I started working on an alternative high-speed DMA-based interface a while ago, but didn’t get very far - James didn’t like my hack and I didn’t have time to do it properly. See https://github.com/lancaster-university/codal-samd/pull/25 (this is for SAMD but the same principle would apply on STM)
Nice. I was actually curious about this as I would like to use a Wifi module on the edge connector of the meowbit.
I looked at the code and was wondering about SerialDevice internalCreateSerialDevice(DigitalInOutPin tx, DigitalInOutPin rx, int id) {
. Does the id
indicate it is possible to have more than one serial connection defined?