I have a project which uses an Arduino pro mini (328P uP), and I2C display and a 3x4 keypad.
The keypad fails to work and I note one of the Column pins is always low. Looks like I need to turn on the pull up resisters, but my attempts at using C code cause an error which prevents me from compiling to target.
The on screen simulation works ok.
the Keypad is connected PD2-Col2, PD3-R0w1, PD4 Col3, PD5-Row4, PD6-Col1,PD7 Row3, PB0-Row2
it appears that PD2 is always low and even an external pullup will not change its state.
I looked for same C code to embed in the Supplementary code, but found not that work, and all give an error which stops the writing to device.
Any advice or help gratefully received
Tinker
Pull-Up setting registers and ports 328uP
-
- Posts: 25
- http://meble-kuchenne.info.pl
- Joined: Mon Sep 19, 2022 11:19 pm
Re: Pull-Up setting registers and ports 328uP
Thanks for the info Mnfisher, the two boards I have are looking duff, so for the project I am doing I am switching to ESP32-C