Code: Select all
USBDevice.setManufacturerDescriptor("XYZ MIDI Mfg ");
USBDevice.setProductDescriptor ("XYZDevice ");
Code: Select all
// USB MIDI object
Adafruit_USBD_MIDI usb_midi;
//
// Create a new instance of the Arduino MIDI Library,
// and attach usb_midi as the transport.
MIDI_CREATE_INSTANCE(Adafruit_USBD_MIDI, usb_midi, MIDI);
KISIMidi::KISIMidi()
{
} //end constructor
KISIMidi::~KISIMidi()
{
} //end destructor
void KISIMidi::initialize()
{
#if defined(ARDUINO_ARCH_MBED) && defined(ARDUINO_ARCH_RP2040)
// Manual begin() is required on core without built-in support for TinyUSB such as mbed rp2040
TinyUSB_Device_Init(0);
#endif
USBDevice.setManufacturerDescriptor("XYZ MIDI Mfg ");
USBDevice.setProductDescriptor ("XYZDevice ");
MIDI.begin(MIDI_CHANNEL_OMNI);
MIDI.turnThruOff();
Serial2.setRX(5);
Serial2.setTX(4);
Serial2.begin(31250);
pinMode(MIDI_LED, OUTPUT);
while ( !TinyUSBDevice.mounted() ) delay(1);
}