parent
ce659116b7
commit
77bb518f19
|
|
@ -215,10 +215,10 @@ struct RPN
|
||||||
#define MIDI_CREATE_INSTANCE(Type, SerialPort, Name) \
|
#define MIDI_CREATE_INSTANCE(Type, SerialPort, Name) \
|
||||||
midi::MidiInterface<Type> Name((Type&)SerialPort);
|
midi::MidiInterface<Type> Name((Type&)SerialPort);
|
||||||
|
|
||||||
#if defined(ARDUINO_SAM_DUE) || defined(USBCON)
|
#if defined(SERIAL_PORT_HARDWARE_OPEN)
|
||||||
// Leonardo, Due and other USB boards use Serial1 by default.
|
// Use recommended default external serial port.
|
||||||
#define MIDI_CREATE_DEFAULT_INSTANCE() \
|
#define MIDI_CREATE_DEFAULT_INSTANCE() \
|
||||||
MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, MIDI);
|
MIDI_CREATE_INSTANCE(HardwareSerial, SERIAL_PORT_HARDWARE_OPEN, MIDI);
|
||||||
#else
|
#else
|
||||||
/*! \brief Create an instance of the library with default name, serial port
|
/*! \brief Create an instance of the library with default name, serial port
|
||||||
and settings, for compatibility with sketches written with pre-v4.2 MIDI Lib,
|
and settings, for compatibility with sketches written with pre-v4.2 MIDI Lib,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue