Looking for example Arduino code for the Adafruit ESP32 V2 feather and the Adafruit MIDI FeatherWing

I am having trouble getting the Adafruit ESP32 V2 feather working with the Adafruit MIDI FeatherWing.

What pins for Rx & Tx should I use?
Will the serial MIDI comms interfere with the normal serial PRINTLN commands?

Does anyone have some example code for this combination?

1 Like

Hi @Anthony83958, Welcome to the Forums!!!

Just to clarify, are you using the Midi FeatherWing with headers connected directly on top of the ESP32 feather or are you wanting to wire them up as two separate boards?

The Product Guide will be your friend for your questions. I’m unsure of the exact RX TX pinout but if you can keep them wired up the same as if the boards were stacked there shouldn’t be an issue.

The product guide also has an example there for arduino and the Library they use also has some examples listed on the GitHub.

I hope this helps you with getting this up and running :slight_smile:

2 Likes

I am using the MIDI Featherwing directly onto of the ESP32 V2 Feather.

When I looked at the Arduino code example on the Adafruit website, I thought the example was not relevant, because I thought it referred to a different type of micro-controller
specifically
#ifdef USE_TINYUSB
#include <Adafruit_TinyUSB.h>
#endif

But, I tried it as per your recommendation and it worked perfectly.
Note, I did alter it slightly, based on another blog
instead of
MIDI_CREATE_DEFAULT_INSTANCE();
I used
MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, MIDI);

Thank you very much for your assistance.

2 Likes