Trying to do this project

I have an arduino mega 2560, and here is a diagram of what I am trying to do. I am a little confused as the difference between all the inputs.

I am using a trellis board from adafruit, so I know that takes up one Analog input and Pin 20 and 21, but are the others “open” to use as inputs or outputs?

I hope pdfs expains it.

Basically I have 25 LED push button inputs, 10 which are both input and output, 7 regular mini push buttons and 16 Analog inputs.

Can this be done?

midi controller 35mm pot - Top Panel (3).pdf (123 KB)

Most of the IO pins can be used for input or outputs. Search for the pinout diagram of your board.

Weedpharma