An open source cross-platform USB stack for embedded system - hathach/tinyusb
floitsch08/03/2025 01:54 PM
I have played with I2S and managed to play audio through it. Spottune.com also uses I2S (iirc).
afaik nobody has yet used USB together with Toit. Until it is exposed through primitives, bundling a C library could indeed be a good solution. Have a look at https://docs.toit.io/tutorials/misc/c-service to see how Toit can communicate with C. The biggest downside of this approach is that you need to build your own envelope (and maintain it).
My suggestion, if you are for it: try to get things working with tiny-usb as an external library, and if the API surface isn't too big, we can then try to integrate tiny-usb through primitives, making it a first-class citizen.