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

..--

src/04-Jan-2025-185133

CMakeLists.txtD04-Jan-2025223 96

KconfigD04-Jan-20251.2 KiB4437

README.rstD04-Jan-2025852 3324

prj.confD04-Jan-202598 65

sample.yamlD04-Jan-2025292 1514

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