thank you for reply , but it did not solve yet
there is no any issue with keypad code. when i disconnect midi (from synth to Arduino) or i removed code line below , it works fine. every key press from arduino change prog of my synth & also show key number on oled display.
if (MIDI.read()) // Is there a MIDI message incoming ?
{
switch(MIDI.getType()) // Get the type of the message we caught
{ case midi::NoteOn: // If it is a Note on,
int Channel = (MIDI.getChannel());
int D1 = ( MIDI.getData1()) ;
int D2 = ( MIDI.getData2());
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(SSD1306_WHITE);
display.setCursor(0,0);
display.println(Channel);
display.setCursor(50,0);
display.println(D1);
display.setCursor(0,16);
display.println(D2);
display.display();
Note_In = D1;
break;
}
}
i seemed any problem in Midi library. when above code is added to sketch, it behave flood of midi messeges , hanged out my synth.No any result is shown on Display.only midi out from Arduino is working . before adding midi & display code , i have check every key press in serial monitor. before adding midi code , i see every key pressed & released on display. so no issue with keypad code or wiring. problem is in -:
if (MIDI.read())
please help me. whererfrom these a lot midi messsege are coming,
is there another midi library availble for 5pin midi to test again.???
or any other solution ???