USING MATRIX 4X4 KEYPAD

Working libraries, libraries being ported and related hardware
Post Reply
yacok@yahoo.com
Posts: 3
Joined: Mon Jul 06, 2020 11:08 pm

USING MATRIX 4X4 KEYPAD

Post by yacok@yahoo.com »

Hello Friends,
I have a projet that needs to input a password.
For that I want to connect a 4x4 keyboard matrix to a blue pill.
Could you please tell me a library to manage the keboard?
For arduino i found some, but for stm I didnt.
Thanks a lot.

ag123
Posts: 467
Joined: Thu Dec 19, 2019 5:30 am
Answers: 1

Re: USING MATRIX 4X4 KEYPAD

Post by ag123 »

if you can afford to use 8 pins, it would be to digitalWrite() 4 output gpio pins in sequence and digitalRead() the other 4 input gpio pins in sequence to scan for that closed switch
https://learn.adafruit.com/matrix-keypad/overview
https://playground.arduino.cc/Code/Keypad/
if you are starved of pins, PCF8574 may help
https://playground.arduino.cc/Main/I2CP ... ndKeypads/

yacok@yahoo.com
Posts: 3
Joined: Mon Jul 06, 2020 11:08 pm

Re: USING MATRIX 4X4 KEYPAD

Post by yacok@yahoo.com »

Thank you for your answer. I knew that library, but are you sure it works with stm32? I thought it works just with arduino.

Post Reply

Return to “Libraries & Hardware”