zephyr/samples/sensor/stm32_temp_sensor
Kumar Gala 5d36157c7c sensors: Remove unnecessary Kconfig setting of sensors
Sensor Kconfig sybmols should be enabled if CONFIG_SENSOR=y
and the devicetree node for the sensor is enabled.  We can
remove explicitly enabling specific sensor drivers in .conf
files.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-25 15:18:56 +02:00
..
boards
src
CMakeLists.txt
README.rst
prj.conf sensors: Remove unnecessary Kconfig setting of sensors 2022-07-25 15:18:56 +02:00
sample.yaml

README.rst

.. _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