Using Serial1 for Leonardo.
This commit is contained in:
parent
e46724440c
commit
11c3ada47c
|
|
@ -50,7 +50,11 @@
|
|||
// Set the default port to use for MIDI.
|
||||
#if MIDI_AUTO_INSTANCIATE
|
||||
# ifdef ARDUINO
|
||||
# define MIDI_DEFAULT_SERIAL_PORT Serial
|
||||
# ifdef USBCON
|
||||
# define MIDI_DEFAULT_SERIAL_PORT Serial1 // For Leonardo
|
||||
# else
|
||||
# define MIDI_DEFAULT_SERIAL_PORT Serial // For other Arduinos
|
||||
# endif
|
||||
# define MIDI_DEFAULT_SERIAL_CLASS HardwareSerial
|
||||
# include "Arduino.h"
|
||||
# include "HardwareSerial.h"
|
||||
|
|
|
|||
Loading…
Reference in New Issue