MCP23018 with ESP32

Hello guys, I am just facing I/O pin shortage for my project so I decided to give MCP23018 a try but I am new in this topic so any one please guide me how to do my connection with ESP32 and any coding tutorial.

I searched on google but I found tutorial for MCP23017:

so this code also void for MCP23018? And I am very confuse how to do connection with it.

Have you looked in the Library Manager ?

There appear to be a number of libraries for the MCP23017

Yes, but I want it to learn from basics that's why I am not looking for library any way I am mainly confuse in connection between ESP32 and MCP23018.

The expander is an I2C port expansion chip.

Take a look at ESP32 I2C Communication: Set Pins, Multiple Bus Interfaces and Peripherals | Random Nerd Tutorials

Ohh thanks alot, There is only need to connect SDA, SCL, VCC and GND pin, there is one tutorial in which there some capacitors and resistor are used for CLOCK that's why I confused but now I got a proper Idea about it!