-
My program starts with this: #include <Midi.h>
// Create and bind the MIDI interface to the default hardware Serial port
MIDI_CREATE_DEFAULT_INSTANCE(); It gets this error, with a carat under the semicolon at the end:
So I comment that out, and insert what the macro would be putting in: MIDI_CREATE_INSTANCE(HardwareSerial, Serial, MIDI); This results in these errors. In the first error, the carat points at the second parameter, Serial. In the second error. it points at the third parameter, MIDI. In the third error, it points to the semicolon at the end.
On the Nano, Serial is the name of the serial port (as you can see on this page) as it has only one serial port. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Can you try with It could be that the macro is not found (on case-sensitive systems) and it throws the compiler off. |
Beta Was this translation helpful? Give feedback.
Can you try with
#include <MIDI.h>
(uppercase)?It could be that the macro is not found (on case-sensitive systems) and it throws the compiler off.