The SCL and SDA pins must be tied directly to VCC because if SCL and SDA are tied to an auxiliary power supply that can be powered on while VCC is powered off, then the supply current, ICC, increases as a result.
Device address is configured as 0111000 for this example.
P0, P2, and P3 are configured as outputs.
P1, P4, and P5 are configured as inputs.
P6 and P7 are not used and must be configured as outputs.