Skip to content

Commit 32489bc

Browse files
committed
Added default serial port for Teensy 3.0/3.1/3.2 and Teensy LC
1 parent ce42efc commit 32489bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/midi_Defs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ struct RPN
214214
#define MIDI_CREATE_INSTANCE(Type, SerialPort, Name) \
215215
midi::MidiInterface<Type> Name((Type&)SerialPort);
216216

217-
#if defined(ARDUINO_SAM_DUE) || defined(USBCON)
217+
#if defined(ARDUINO_SAM_DUE) || defined(USBCON) || defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MKL26Z64__)
218218
// Leonardo, Due and other USB boards use Serial1 by default.
219219
#define MIDI_CREATE_DEFAULT_INSTANCE() \
220220
MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, MIDI);

0 commit comments

Comments
 (0)