Added default serial port for Teensy 3.0/3.1/3.2 and Teensy LC

This commit is contained in:
David Menting 2016-11-04 12:36:21 +01:00
parent ce42efc7c6
commit 32489bc0ea
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ struct RPN
#define MIDI_CREATE_INSTANCE(Type, SerialPort, Name) \
midi::MidiInterface<Type> Name((Type&)SerialPort);
#if defined(ARDUINO_SAM_DUE) || defined(USBCON)
#if defined(ARDUINO_SAM_DUE) || defined(USBCON) || defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MKL26Z64__)
// Leonardo, Due and other USB boards use Serial1 by default.
#define MIDI_CREATE_DEFAULT_INSTANCE() \
MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, MIDI);