Lolin I2c Port
For a newbie adding an i2c device can be frustrating.
Lolin i2c port. If you just want more gpio you will find an i c gpio port expander such as the mcp23017 much more suitable for that 16 more gpios at the cost of 2 gpio pins the i2c bus. I c i2c iic is a serial 2 wire bus for communicating with various devices. If you re already using the i2c bus in a project then you don t even loose additional gpios it s just one more device on the bus. Several things need to line up properly for things to work.
The i2c port address scanner ino will not only discover the address of your i2c device but also the port numbers to which sla and slc are connected. Get started with micropython d1 d1 mini series get started with arduino d1 d1 mini series. Compatible with arduino micropython. Various boards have different mappings between port number and gpio number.
The lolin d32 comes with a standard micropython firmware and is also compatible with arduino and supports other alternative firmware. Tf micro sd card slot support spi mode. Esp8266 chip does not have hardware i c so module uses software i c driver. It can be set up on any gpio pins including gpio16 see below.