Actually there were some mistakes in the circuit as well. Now it's fixed and seems to work fine. So I'm attaching the Arduino sketch and Pd patch again (don't remember if I've made any changes since then) for anyone who wants to use it. The wiring should be done the way it's done here http://bildr.org/2011/02/cd74hc4067-arduino/ (it's also the multiplexers that I used) but I've used different code cause I couldn't get that one working, maybe it's only my mistake. Feel free to share..
On Wed, Mar 27, 2013 at 4:22 PM, Alexandros Drymonitis adrcki@gmail.comwrote:
I'm trying to use two multiplexers, one with 16 potentiometers and the other with 16 buttons, to read the data in Pd. The potentiometers work fine, but I get nothing from the buttons. Wiring look correct (I've tried it with a single button and it works), so I've no idea what goes wrong. I've attached the Arduino sketch and the Pd patch if anyone's willing to give it a look.
Thanks