Hi. I’ve gone through various “toggle led on and off” sketches but am struggling with multiple buttons and leds.
Basically I have a simple midi footswitch controller using the control surface library and the input is via 8 push to make switches that send note on/off data. That works fine given the device it’s controlling is very basic. Have to Toggle to switch functions on and off.
However I need to add 6 leds to 6 of the buttons as I need a visual sign of what I’ve switched on so I know to switch it back off, hence the toggle led.
A lot of the sketches are quite old and have seen quite a few variants so am a bit stuck.
I need to read the state of 6 buttons and change the led status of a corresponding LED every time I press a button.
Was going off this sketch but am a bit confused with how to get the code right for multiple buttons and leds