Connect and reset
Power, bypass and reset the IC; ground A2–A0 and connect I²C.
Build a basic MCP23017 circuit with labeled pins, component values and connection guidance.
A defined startup sequence and captured input changes.
Follow the component values and pin connections
Power, bypass and reset the IC; ground A2–A0 and connect I²C.
Preload latches, then set IODIRA 7E and IODIRB 7F. Both bit-7 pins remain outputs.
Write OLATA bit0 for the LED; read GPA1 or captured port A state for the button.