zephyr/samples/sensor/hts221
Peter A. Bigot cf57312953 samples: sensors: hts221: support triggered readings
Allow trigger-initiated sampling at the support 7 and 12.5 Hz rates.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2019-01-29 17:50:02 +01:00
..
src samples: sensors: hts221: support triggered readings 2019-01-29 17:50:02 +01:00
CMakeLists.txt cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
README.rst samples: sensor: Convert doc to CMake 2017-11-12 21:13:23 -05:00
prj.conf sample: fix configuration for sensor HTS221 sample application 2018-01-13 09:06:58 -08:00
sample.yaml samples: sensor: Include regex matching and fixture 2018-11-14 23:43:48 -05:00

README.rst

.. _hts221:

HTS221: Temperature and Humidity Monitor
########################################

Overview
********
This sample periodically reads temperature and humidity from the HTS221
Temperature & Humidity Sensor and displays it on the console


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

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

References
**********

 - HTS211: http://www.st.com/en/mems-and-sensors/hts221.html

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

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

.. zephyr-app-commands::
   :zephyr-app: samples/sensors/hts221
   :board: disco_l475_iot1
   :goals: build
   :compact:

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

 .. code-block:: console

    Temperature:25.3 C
    Relative Humidity:40%
    Temperature:25.3 C
    Relative Humidity:40%
    Temperature:25.3 C
    Relative Humidity:40%
    Temperature:25.3 C
    Relative Humidity:40%

    <repeats endlessly every 2 seconds>