Rewrite for MCP23017.