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