I2C (Inter-Integrated Circuit) is a simple serial protocol that connects multiple devices in a master-slave relationship.

In most cases, the BSP for your reference board includes the source for an I2C driver that you can try to use with your custom board.

You can use the I2C Framework to modify the I2C driver, if required.