README.rst
1.. zephyr:code-sample:: i2c-eeprom-target
2 :name: I2C Target
3 :relevant-api: i2c_interface
4
5 Setup an I2C target on the I2C interface.
6
7Overview
8********
9
10This sample demonstrates how to setup and use the :ref:`i2c-target-api` using the
11:dtcompatible:`zephyr,i2c-target-eeprom` device.
12
13Requirements
14************
15
16This sample requires an I2C peripheral which is capable of acting as a target.
17
18This sample has been tested on :zephyr:board:`lpcxpresso55s69`.
19
20Building and Running
21********************
22
23The code for this sample can be found in :zephyr_file:`samples/drivers/i2c/target_eeprom`.
24
25To build and flash the application:
26
27.. zephyr-app-commands::
28 :zephyr-app: samples/drivers/i2c/target_eeprom
29 :board: lpcxpresso55s69/lpc55s69/cpu0
30 :goals: flash
31 :compact:
32