Description
So I'm using the RP2 port of MicroPython.
Is there a way to, at runtime, switch to EG UART1 communication? By default I get the Python REPL, which is fine but I'm trying to expose UART1, with all its relevant programming, over the USB connection. Ideally would avoid the hardware pin-connected adapter if at all possible.
I can see USB_VCP [0] is a thing, but it's only for PyBoard. CircuitPython [1] for example allows defining another virtual USB device, and mapping it to UART from what I can tell. There is also a community patch that does just this, but it's a git patch and possibly leads to other issues [2].
[0] https://docs.micropython.org/en/latest/library/pyb.USB_VCP.html
[1] https://learn.adafruit.com/customizing-usb-devices-in-circuitpython?view=all#add-a-second-serial-port-3096573-2
[2] https://forums.raspberrypi.com/viewtopic.php?t=305834