Closed komusics closed 9 months ago
OK i found a problam with i add in const byte ( const byte XGon[9]) .
becose no have a excemple to use this code.
In your first example, you created const byte * XGon[9] = {...}
, which is an array of 9 pointers to a byte.
Since you likely want an array of 9 bytes, dropping the star gives you the correct type.
Tip: if the array never changes, consider moving it out of the loop
function and mark it as static const
, this will let the compiler optimise memory usage.
i have a problam when i type to send sendSysEx. i use arduino 1.6.10
my code.
include
// Simple tutorial on how to receive and send MIDI messages. // Here, when receiving any message on channel 4, the Arduino // will blink a led and play back a note for 1 second.
MIDI_CREATE_DEFAULT_INSTANCE();
void setup() { pinMode(LED_BUILTIN, OUTPUT); MIDI.begin(1); // Launch MIDI and listen to channel 1
}
void loop() {
}
after i verify my code Arduino ide has report problam.
how i cam fix ?
thankyou all.