zephyr/samples/sensor/die_temp_polling
Raffael Rostagno 8048a6ab67 samples: esp32c3: Add USB variant
Add USB variant config files for esp32c3 boards.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-01-10 18:57:07 +01:00
..
boards samples: rpi_pico2: Add ADC-related samples for rpi_pico2 2024-12-23 23:57:57 +01:00
socs samples: esp32c3: Add USB variant 2025-01-10 18:57:07 +01:00
src samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
CMakeLists.txt
prj.conf
README.rst samples: sensor: use zephyr:code-sample directive 2024-09-04 21:26:50 +02:00
sample.yaml samples: sensors: nucleo_h7a3zi_q board added to die_temp_polling 2024-06-04 16:37:19 +02:00

.. zephyr:code-sample:: die_temp_polling
   :name: CPU die temperature polling
   :relevant-api: sensor_interface

   Get CPU die temperature data from a sensor using polling.

Overview
********

This sample periodically reads temperature from the CPU Die
temperature sensor and display the results.

Building and Running
********************

To run this sample, enable the sensor node that supports ``SENSOR_CHAN_DIE_TEMP``
and create an alias named ``die-temp0`` to link to the node.
The tail ``0`` is the sensor number.  This sample support up to 15 sensors.

.. zephyr-app-commands::
   :zephyr-app: samples/sensor/die_temp_polling
   :board: rpi_pico
   :goals: build
   :compact:

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

.. code-block:: console

    CPU Die temperature[dietemp]: 22.6 °C
    CPU Die temperature[dietemp]: 22.8 °C
    CPU Die temperature[dietemp]: 23.1 °C