you could use the ain64_din128_dout128_v1_1 application as inspiration. It allows to connect up to 128 buttons, 128 LEDs and 64 pots. Just remove the pot handler if you don’t need it. In USER_Init the number of pots have to be set to 0.
The MIDI events for buttons and LEDs are defined in mios_tables.inc
you could use the ain64_din128_dout128_v1_1 application as inspiration. It allows to connect up to 128 buttons, 128 LEDs and 64 pots. Just remove the pot handler if you don’t need it. In USER_Init the number of pots have to be set to 0.
The MIDI events for buttons and LEDs are defined in mios_tables.inc