Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5639

Device Tree • Re: MCP23017 overlay error -EIO: can't write IOCON 32

$
0
0
in python script its this register

Code:

GPPUA = 0x0C  # Pull-up resistors for port AGPPUB = 0x0D  # Pull-up resistors for port B# Enable pull-up resistors on port Ai2c.write_byte_data(MCP23017_ADDRESS, GPPUA, 0xFF)# Enable pull-up resistors on port Bi2c.write_byte_data(MCP23017_ADDRESS, GPPUB, 0xFF)           
Yes, and it's handled in the driver via mcp_pinconf_set (https://github.com/raspberrypi/linux/bl ... #L245-L269). Defaults to 0x00 which is no pull (line 99).
What I can't recall is how to set the pull ups on this chip.

Statistics: Posted by 6by9 — Fri Dec 20, 2024 4:49 pm



Viewing all articles
Browse latest Browse all 5639

Trending Articles