So now I have this
#include <MIDI.h>
#include <midi_Defs.h>
#include <midi_Message.h>
#include <midi_Namespace.h>
#include <midi_Settings.h>
MIDI_CREATE_DEFAULT_INSTANCE();
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
MIDI.begin(3);
}
void loop() {
if (MIDI.read()) {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(10); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(10);
}
}
I wanted to make blink the builtin led and it works! Now I'm wondering how could I do this :
When the C1 note is pressed > Make blink the led.
Do you have an idea?
Best,
Florent