More than two USB pins on ESP32-S2?
Posted: Mon Oct 04, 2021 8:12 pm
I successfully run the ESP32TinyUSB MIDI example (version 1.3.4 and this patch https://github.com/chegewara/EspTinyUSB ... -915718146). The ESP32-S2 is recognized as a MIDI device, and plays the song, which is included in the example. That's pretty cool so far!
However, it's just the first step to reach my goal, which is to filter selected MIDI events. I'm currently using GPIO 19 and 20 to connect an USB cable, as described in the ESP32-S2 manual. To pass-through or filter MIDI events, I need another two pins for I/O.
Question: Is it possible to use another two ESP32-S2 pins for USB? It probably means that the ESP32-S2 has to emulate two USB devices instead of one (maybe there is a smarter solution, and a software thread can emulate two devices):
MIDI source device -- USB-MIDI connection --> ESP32-S2 -- USB-MIDI connection --> MIDI target device
Thanks for answering!
Da Flex
However, it's just the first step to reach my goal, which is to filter selected MIDI events. I'm currently using GPIO 19 and 20 to connect an USB cable, as described in the ESP32-S2 manual. To pass-through or filter MIDI events, I need another two pins for I/O.
Question: Is it possible to use another two ESP32-S2 pins for USB? It probably means that the ESP32-S2 has to emulate two USB devices instead of one (maybe there is a smarter solution, and a software thread can emulate two devices):
MIDI source device -- USB-MIDI connection --> ESP32-S2 -- USB-MIDI connection --> MIDI target device
Thanks for answering!
Da Flex