This may already be built in with the class USBDevice – USB Device driver. There's an example cdc_repl_example.py in micropython-lib that creates a dynamic CDC device and attaches the REPL to it. Not exactly what you want, but it might be a start.
User projectgus on here implemented the MicroPython USB user code, so if they show up, their answer will be better than this. The MicroPython discord or discussions might be a better place to find them
User projectgus on here implemented the MicroPython USB user code, so if they show up, their answer will be better than this. The MicroPython discord or discussions might be a better place to find them
Statistics: Posted by scruss — Mon Jan 19, 2026 4:54 pm