USB MIDI, audio class, and more USB classes for R4 Minima and Nano R4

UnoR4-tinyusb adds a full port of a recent snapshot of TinyUSB USB device and host classes for Uno R4 Minima and Nano R4 boards. Uno R4 WiFi with its USB multiplexer is too complex to support.

USB MIDI and audio classes were the reason for this project but all USB classes are included.

When using this project, double tap the reset button before uploading.

This project consists of a fork of ArduinoCore-renesas (Arduino UNO R4 Boards) with the full TinyUSB source code. This fork can co-exist with the standard ArduinoCore-renesas board file. The rest of the project consists of TinyUSB example sketches. If you use host mode, you will have to figure out how to power the board and your USB device. Arduino R4 boards do not provide power out on their USB Type C connectors.

The forked board file + library software architecture was inspired by the Arduino XInput project.

This project was developed with the OpenCode AI coding agent.

If you find a TinyUSB bug, do not report to the TinyUSB project unless you can reproduce it without this project. There is a good chance the bug is in the interface between TinyUSB and Arduino. The TinyUSB maintainers will be baffled if you mention this project.

Thanks @customcontroller!

Perhaps one of those USB OTG cables that have a power injector? Like this:

Looks ideal! I will see if I can get one from Amazon. I use a hand wired cable but it looks like a mess.