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

..--

boards/04-Jan-2025-160129

socs/04-Jan-2025-1411

src/04-Jan-2025-6345

CMakeLists.txtD04-Jan-2025269 107

README.rstD04-Jan-2025871 3424

prj.confD04-Jan-202574 54

sample.yamlD04-Jan-2025420 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