• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

boards/04-Jan-2025-5142

src/04-Jan-2025-4125

CMakeLists.txtD04-Jan-2025193 95

README.rstD04-Jan-2025783 3221

prj.confD04-Jan-202560 43

sample.yamlD04-Jan-2025576 2322

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