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 the :dtcompatible:`ti,tmp108` built in to its :ref:`devicetree <dt-guide>`,
18or a devicetree overlay with such a node added.
19
20Sample Output
21=============
22
23.. code-block:: console
24
25 ** Booting Zephyr OS build zephyr-v2.6.0-1923-g72bb75a360ce ***
26 TI TMP108 Example, arm
27 Temperature is 22.875C
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