[HELP] Midi button LED control code.

Whoops yeah got resistors just forgot to put them on in a rush.

Google midi fighter 64 that’s the dream right there but I’ll stick with 16 buttons right now.

I got the code from a guy called nerd musician.

Cool so I can just delete the pitchnote bits to tidy it up.
Can you shed any light on the LEDs?