Hi guys!
I've encounter a bunch of problems during my arduino-job, so, here i am.
I've read almost all the topics that refers to arduino-midi but, however, i'm stuck.
My problem is: i want to send program changes from my guitar pedalboard to arduino, and enlight the led if is right.
Now, my code is
#include <MIDI.h>
#define nove 9
void setup() {
MIDI.begin();
pinMode(nove, OUTPUT);
}
void loop() {
MIDI.read();
if(MIDI.getType()==ProgramChange)
digitalWrite(nove, HIGH);
}
But it still doesn't work.
My board is an arduino duemilanove w/ATmega328.
I hope you help me guys