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

..--

src/29-Dec-2025-198141

CMakeLists.txtD29-Dec-2025223 96

KconfigD29-Dec-20251.2 KiB4437

README.rstD29-Dec-2025919 3425

prj.confD29-Dec-202598 65

sample.yamlD29-Dec-2025386 1716

README.rst

1.. zephyr:code-sample:: tmp108
2   :name: TMP108 Temperature Sensor
3   :relevant-api: sensor_interface
4
5   Get temperature data from a TMP108 sensor (polling & trigger mode).
6
7Description
8***********
9
10This sample writes the temperature to the console once every 3 seconds. There are
11macro definitions included for turning off and on alerts if that is set up, and
12also using low power one shot mode.
13
14Requirements
15************
16
17A board with either the :dtcompatible:`ti,tmp108` or :dtcompatible:`ams,as6212` or
18:dtcompatible:`ams,as6221` built in to its :ref:`devicetree <dt-guide>`,
19or a devicetree overlay with such a node added.
20
21Sample Output
22=============
23
24.. code-block:: console
25
26	** Booting Zephyr OS build zephyr-v2.6.0-1923-g72bb75a360ce  ***
27	TI TMP108 Example, arm
28	Temperature is 22.875C
29	Temperature is 22.875C
30	Temperature is 22.875C
31	Temperature is 22.875C
32	Temperature is 22.875C
33	Temperature is 22.875C
34