tttapa / Control-Surface

Arduino library for creating MIDI controllers and other MIDI devices.
GNU General Public License v3.0
1.25k stars 139 forks source link

Can I use mux for digital read of buttons? #12

Closed sudomf closed 5 years ago

tttapa commented 5 years ago

Yes.

sudomf commented 5 years ago

@tttapa can you please give me an example of row to use CD74HC4067 MUX with CCButton?

tttapa commented 5 years ago

Just like this example: https://tttapa.github.io/Control-Surface/Doc/Doxygen/dd/dcc/md_Getting-Started.html
Then just pass the pin number to the CCButton contructor:

CCButton button = {mux.pin(0), address};
sudomf commented 5 years ago

Thank you @tttapa, congratulations for the library. It's awesome. I turned a broken POD HD 500 into a MIDI controller with the Control Surface library. Just need to make expression pedal works, it's using an IR transmissor and receptor.

tttapa commented 5 years ago

Do you need help with the expression pedal? Do you have a picture, drawing or schematic?