• Home
  • Annotate
  • current directory
Name Date Size #Lines LOC

..22-Aug-2025-

boards/22-Aug-2025-

socs/22-Aug-2025-

src/22-Aug-2025-

CMakeLists.txt A D22-Aug-2025278 107

README.rst A D22-Aug-2025904 3424

prj.conf A D22-Aug-202578 54

sample.yaml A D22-Aug-2025436 1716

README.rst

1.. zephyr:code-sample:: die_temp_polling
2   :name: CPU die temperature polling
3   :relevant-api: sensor_interface
4
5   Get CPU die temperature data from a sensor using polling.
6
7Overview
8********
9
10This sample periodically reads temperature from the CPU Die
11temperature sensor and display the results.
12
13Building and Running
14********************
15
16To run this sample, enable the sensor node that supports ``SENSOR_CHAN_DIE_TEMP``
17and create an alias named ``die-temp0`` to link to the node.
18The tail ``0`` is the sensor number.  This sample support up to 15 sensors.
19
20.. zephyr-app-commands::
21   :zephyr-app: samples/sensor/die_temp_polling
22   :board: rpi_pico
23   :goals: build
24   :compact:
25
26Sample Output
27=============
28
29.. code-block:: console
30
31    CPU Die temperature[dietemp]: 22.6 °C
32    CPU Die temperature[dietemp]: 22.8 °C
33    CPU Die temperature[dietemp]: 23.1 °C
34