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

..--

boards/03-Aug-2024-108

src/03-Aug-2024-10158

CMakeLists.txtD03-Aug-2024200 95

README.rstD03-Aug-2024755 3221

prj.confD03-Aug-202433 32

sample.yamlD03-Aug-2024180 98

README.rst

1.. zephyr:code-sample:: i2c-custom-target
2   :name: I2C Custom Target
3   :relevant-api: i2c_interface
4
5   Setup a custom I2C target on the I2C interface.
6
7Overview
8********
9
10This sample demonstrates how to setup an I2C custom target on the I2C interface
11using the :ref:`i2c-target-api`.
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 :ref:`lpcxpresso55s69`.
19
20Building and Running
21********************
22
23The code for this sample can be found in :zephyr_file:`samples/drivers/i2c_target`.
24
25To build and flash the application:
26
27.. zephyr-app-commands::
28   :zephyr-app: samples/drivers/i2c_target
29   :board: lpcxpresso55s69/lpc55s69/cpu0
30   :goals: flash
31   :compact:
32