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).in python script its this registerCode:
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)
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