This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

I2C Target


This sample demonstrates how to setup and use the I2C Target API using the zephyr,i2c-target-eeprom device.


This sample requires an I2C peripheral which is capable of acting as a target.

This sample has been tested on NXP LPCXPRESSO55S69.

Building and Running

The code for this sample can be found in samples/drivers/i2c_target.

To build and flash the application:

west build -b lpcxpresso55s69/lpc55s69/cpu0 samples/drivers/i2c_target
west flash