zephyr/samples/sensor/lps22hb
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
..
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

.. _lps22hb:

LPS22HB: Temperature and Humidity Monitor
#########################################

Overview
********
This sample periodically reads pressure from the LPS22HB MEMS pressure
sensor and displays it on the console.


Requirements
************

This sample uses the LPS22HB sensor controlled using the I2C interface.

References
**********

- LPS22HB: http://www.st.com/en/mems-and-sensors/lps22hb.html

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

This project outputs sensor data to the console. It requires an LPS22HB
sensor, which is present on the disco_l475_iot1 board.

.. zephyr-app-commands::
   :zephyr-app: samples/sensor/lps22hb
   :board: disco_l475_iot1
   :goals: build
   :compact:

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

.. code-block:: console

   Observation:1
   Pressure:98.7 kPa
   Temperature:22.5 C
   Observation:2
   Pressure:98.7 kPa
   Temperature:22.5 C
   Observation:3
   Pressure:98.7 kPa
   Temperature:22.5 C

   <repeats endlessly every 2 seconds>