Closed adrianbn closed 4 years ago
Thanks for noticing this problem. I think that I've left a testing version of DynamicKeypad in the Keypad_I2C library. The Setup for all of the example sketches requires Wire.begin( ), which was commented out in the library example. I've just uploaded a corrected version. Please verify that it now works properly and post a closing comment.
That did it, thank you!
Hi,
Thanks for this library! I downloaded the Keypad_I2C library and the CustomKeypad example to test my 4x4 membrane keypad with my I2C expander board. The board uses PF8574T (https://smile.amazon.com/gp/product/B07XD2K4GH). I manage to get an I2C port scanner to find the PF8574T at address 0x20 (all jumpers off), but when I load the CustomKeypad example there are no key presses detected. Worth mentioning that the only change I made to the example code was to replace 0x21 with 0x20 as that is the address my module lives on.
I have wired the keypad directly to the arduino and that works fine. I've also tried a second PF8574T chip (same breakout board model, I just got 2) to rule out chip failure.
I'm not quite sure how the Keypad library and this library are wired together, but I was able to trace the getKey -> getKeys -> scanKeys -> readPin call into this library and added some debug to readPin and writePin. The output below has been recorded while repeatedly pressing key 1.
Any help debugging this issue would be highly appreciated!