zephyr/samples/sensor/lps22hh
Flavio Ceolin 9fd4ea91b7 coccinelle: Remove extra semicolon
coccicheck --mode=patch --cocci=semicolon.cocci

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2021-03-25 11:35:30 -05:00
..
src coccinelle: Remove extra semicolon 2021-03-25 11:35:30 -05:00
CMakeLists.txt samples: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
README.rst boards: nrf52_pca10040: Rename to nrf52dk_nrf52832 2020-04-06 13:09:07 +02:00
prj.conf samples: add FP formatting to all samples that require it 2020-11-17 14:44:59 -06:00
sample.yaml samples: sensor: lps22hh: replace platform filter with fixture 2020-09-16 09:05:41 -04:00

README.rst

.. _lps22hh:

LPS22HH: Temperature and Pressure Monitor
#########################################

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


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

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

References
**********

- LPS22HH: http://www.st.com/en/mems-and-sensors/lps22hh.html

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

This project outputs sensor data to the console. It requires an LPS22HH
sensor, which is present on the X-NUCLEO-IKS01A3 shield.

.. zephyr-app-commands::
   :zephyr-app: samples/sensor/lps22hh
   :board: nrf52dk_nrf52832
   :shield: x_nucleo_iks01a3
   :goals: build
   :compact:

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

.. code-block:: console

   Configured for triggered collection at 1 Hz
   Observation: 1
   Pressure: 97.474 kPa
   Temperature: 22.19 C
   Observation: 2
   Pressure: 97.466 kPa
   Temperature: 22.21 C
   Observation: 3
   Pressure: 97.473 kPa
   Temperature: 22.21 C
   Observation: 4
   Pressure: 97.455 kPa
   Temperature: 22.21 C

   <repeats endlessly every second>