Files
Atilla Filiz ddd25e81e7 drivers: sensor: add ams as6221 temperature sensor driver support
The as6221 is functionally equivalent to ti tmp108 and ams as6212,
so it is added as a new variant of tmp108.

Signed-off-by: Atilla Filiz <atilla@fi-tech.be>
2025-12-11 16:58:50 +01:00
..

.. zephyr:code-sample:: tmp108
   :name: TMP108 Temperature Sensor
   :relevant-api: sensor_interface

   Get temperature data from a TMP108 sensor (polling & trigger mode).

Description
***********

This sample writes the temperature to the console once every 3 seconds. There are
macro definitions included for turning off and on alerts if that is set up, and
also using low power one shot mode.

Requirements
************

A board with either the :dtcompatible:`ti,tmp108` or :dtcompatible:`ams,as6212` or
:dtcompatible:`ams,as6221` built in to its :ref:`devicetree <dt-guide>`,
or a devicetree overlay with such a node added.

Sample Output
=============

.. code-block:: console

	** Booting Zephyr OS build zephyr-v2.6.0-1923-g72bb75a360ce  ***
	TI TMP108 Example, arm
	Temperature is 22.875C
	Temperature is 22.875C
	Temperature is 22.875C
	Temperature is 22.875C
	Temperature is 22.875C
	Temperature is 22.875C