Page 1 of 1

Matrix keypad 4x4, can read only half

Posted: Sat Aug 05, 2017 12:05 pm
by glararan
Hi,

I have code posted on pastebin: https://pastebin.com/jpsBRS4d

I used arduino sketch to test if matrix works, it works. But i'd like to use espidf instead arduino. My problem is that I can read only first two rows, third, fourth acts like they werent available or something...

Using basic 4x4 keypad from ebay:
Image

If I switch row with cols I can read "1, 4", "3" acts like "A", "6" acts like "B". Dunno whats going on.. Probably mistakes with pull-ups.

I had Windows IoT demo working, when coppied code and rewritten to espidf it dont work.. Im newbie in espidf.

Thank for help.

Re: Matrix keypad 4x4, can read only half

Posted: Sun Aug 06, 2017 10:24 pm
by WiFive
Try adding gpio_pad_select_gpio to your gpio init