zephyr/samples/sensor/stm32_temp_sensor
Wouter Cappelle c3ca3aa27d sensors: STM32: Add support for L5 die temp sensor
This PR adds the different handling of temperature sensor for the
STM32L5 soc. In this soc, there are some calibration settings which
need to be applied for temperature conversion.

Signed-off-by: Wouter Cappelle <wouter.cappelle@crodeon.com>
2022-01-13 10:34:10 +01:00
..
boards sensors: STM32: Add support for L5 die temp sensor 2022-01-13 10:34:10 +01:00
src sensors: STM32: Add support for L5 die temp sensor 2022-01-13 10:34:10 +01:00
CMakeLists.txt
prj.conf
README.rst
sample.yaml sensors: STM32: Add support for L5 die temp sensor 2022-01-13 10:34:10 +01:00

.. _stm32_temp_sensor:

STM32 Temperature Sensor
########################

Overview
********

This sample periodically reads temperature from the STM32 Internal
Temperature Sensor and display the results.

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

In order to run this sample, make sure to enable ``stm32_temp`` node in your
board DT file.

.. zephyr-app-commands::
   :zephyr-app: samples/sensor/stm32_temp_sensor
   :board: nucleo_f103rb
   :goals: build
   :compact:

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

.. code-block:: console

    Current temperature: 22.6 °C
    Current temperature: 22.8 °C
    Current temperature: 23.1 °C