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.
USING MATRIX 4X4 KEYPAD
Re: USING MATRIX 4X4 KEYPAD
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/
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/
-
- Posts: 4
- Joined: Mon Jul 06, 2020 11:08 pm
Re: USING MATRIX 4X4 KEYPAD
Thank you for your answer. I knew that library, but are you sure it works with stm32? I thought it works just with arduino.
Re: USING MATRIX 4X4 KEYPAD
Did the keypad worked with Stm32?? if yes kindly share pin connection and code.yacok@yahoo.com wrote: Mon Jul 27, 2020 9:45 am Thank you for your answer. I knew that library, but are you sure it works with stm32? I thought it works just with arduino.
-
- Posts: 4
- Joined: Mon Jul 06, 2020 11:08 pm
Re: USING MATRIX 4X4 KEYPAD
I dont know. I didnt try all the different configurations. I ended abandon the stm32 and went back to arduino. The stm32 has great features but it is difficult to work with if you are not engineer.