Hi all,

I am very new to the world of coding but have successfully adapted code to make a running midi controller with 16 arcade buttons and 4 pots using a teensy2.

Now want to make more slave controllers to make a modular setup using the one teensy2 so i bought some 4051 Mux ics to use more buttons and/or pots.

I have found this coding on the net to use 8 pots:


I have two questions

1. How do I change it to not have the pots send set CC messages to midi?
2. What code do I need to add to use push buttons?

I really hope someone help me ?

I apologize in advance if I haven't used the right terminology

Thank you so much in advance.