Microsoft MakeCode

Serial port

What are the options for using serial ports with Arcade?

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)

1 Like