Using Firmata & Max with a Matrix of Buttons

Hi,

I'm trying to use Firmata & Max (with Maxuino) together with a keypad (4x4 matrix of buttons).

Using both the StandardFirmata example and altered version for use with a keypad - KeypadFirmata, the connections flash constantly between on and off (high/low) very quickly when set as digital inputs.

Any help or clarification as to why this is not working would be much appreciated, I presume it is to do with the keypad (or my crappy coding haha). I'm kind of new to Arduino and there's quite a steep learning curve.

I did try to attach my code, but it made the post too long. The only difference (from KeypadFirmata) was the chars used in the keypad and the input pins used.

Screen Shot 2017-05-04 at 19.02.27.png

Anyone? If I'm making a newbie mistake, please let me know haha.

I did try to attach my code

Attaching the code, using Reply and the Additional Options link, does not make your post too big.

the connections flash constantly between on and off (high/low) very quickly when set as digital inputs.

Which "connections"? The keypad library will cause all pins used by the keypad to change from input to output and back, and from HIGH to LOW and back very fast. That is how it is able to read so many switches using so few pins.

OK thanks, solved the issue now using 'serial' in Max rather than Maxuino.