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