Using Serial1 for Leonardo.

This commit is contained in:
Francois Best 2012-10-25 16:32:32 +02:00
parent e46724440c
commit 11c3ada47c
1 changed files with 6 additions and 2 deletions

View File

@ -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"