MIDI Lib using alternate serial on Atmega 814

Hello everybody :slight_smile:

I'm using the MIDI library and trying to use the alternate hardware serial ports on an Atmega 814, IE port PA1 and PA2.
It's hardware serial port, not software serial. But I dont know how to call it for the MIDI_CREATE_INSTANCE function.

I tried

MIDI_CREATE_INSTANCE(HardwareSerial, Serial2, MIDI);

But Serial2 is not recognized.

Any ideas ?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.