Matrix keypad 4x4, can read only half

glararan
Posts: 2
Joined: Sat Aug 05, 2017 11:59 am

Matrix keypad 4x4, can read only half

Postby glararan » Sat Aug 05, 2017 12:05 pm

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.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Matrix keypad 4x4, can read only half

Postby WiFive » Sun Aug 06, 2017 10:24 pm

Try adding gpio_pad_select_gpio to your gpio init

Who is online

Users browsing this forum: Bing [Bot] and 75 guests