MIDI on Serial2 not working on ESP32-S3-DevKitC-1
Posted: Wed Nov 16, 2022 10:03 pm
Hi, I'm using both an ESP32 WROOM 32 and an ESP32-S3-DevKitC-1 to create a MIDI controller with Arduino.
The code I'm using is the one below, I'm using the same type of connections (https://user-images.githubusercontent.c ... 01db0f.png) and pin 17 on both boards but it works only on the WROOM32, do you know why?
Thank you.
#include <MIDI.h>
#include <HardwareSerial.h>
#include <esp_now.h>
struct Serial2MIDISettings : public midi::DefaultSettings
{
static const long BaudRate = 31250;
static const int8_t TxPin = 17;
};
MIDI_CREATE_CUSTOM_INSTANCE(HardwareSerial, Serial2, DIN_MIDI, Serial2MIDISettings);
void setup() {
Serial.begin(9600);
DIN_MIDI.begin(MIDI_CHANNEL_OMNI);
delay(300);
DIN_MIDI.setHandleProgramChange(handleProgramChange);
}
void loop() {
DIN_MIDI.sendProgramChange(42, 10);
delay(100);
}
The code I'm using is the one below, I'm using the same type of connections (https://user-images.githubusercontent.c ... 01db0f.png) and pin 17 on both boards but it works only on the WROOM32, do you know why?
Thank you.
#include <MIDI.h>
#include <HardwareSerial.h>
#include <esp_now.h>
struct Serial2MIDISettings : public midi::DefaultSettings
{
static const long BaudRate = 31250;
static const int8_t TxPin = 17;
};
MIDI_CREATE_CUSTOM_INSTANCE(HardwareSerial, Serial2, DIN_MIDI, Serial2MIDISettings);
void setup() {
Serial.begin(9600);
DIN_MIDI.begin(MIDI_CHANNEL_OMNI);
delay(300);
DIN_MIDI.setHandleProgramChange(handleProgramChange);
}
void loop() {
DIN_MIDI.sendProgramChange(42, 10);
delay(100);
}