[HELP] Midi button LED control code.

To start with you need resistors on the LEDs.

to make my own midi fighter

I have written a book on MIDI and I don’t know what one of these is.

Where did you get that code from? I assume it is not written by you.

The PitchToNote.h is nothing to do with MIDI, it is used with the tone libiary.