zephyr/samples/sensor/fxas21002
Marc Herbert 2cd51a33ce samples: make find_package(Zephyr...) REQUIRED
This provides a better error message when building with CMake and
forgetting ZEPHYR_BASE or not registering Zephyr in the CMake package
registry. See parent commit for more details (split from parent for
better readability).

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2020-05-29 10:47:25 +02:00
..
src samples: sensor: Convert to new DT_INST macros 2020-03-31 07:09:33 -05:00
CMakeLists.txt samples: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
prj.conf drivers: sensor: Migrate to new logger 2018-10-16 08:49:53 -04:00
README.rst doc: fix broken file and zephyr-app refs 2019-10-08 15:42:32 -05:00
sample.yaml yaml: Remove redundant document separators 2019-06-19 10:40:10 +02:00

.. _fxas21002:

FXAS21002 Gyroscope Sensor
##########################

Overview
********

A sensor application that demonstrates how to use the fxas21002 data ready
interrupt to read gyroscope data synchronously.

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

This project outputs sensor data to the console. It requires an fxas21002
sensor, which is present on the :ref:`hexiwear_k64` board. It does not work on
QEMU.

.. zephyr-app-commands::
   :zephyr-app: samples/sensor/fxas21002
   :board: hexiwear_k64
   :goals: build
   :compact:

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

.. code-block:: console

   X=    -2.063 Y=     0.813 Z=     0.188
   X=    -1.750 Y=     1.063 Z=     0.063
   X=    -2.000 Y=     0.625 Z=     0.063
   X=    -2.188 Y=     0.625 Z=     0.188
   X=    -2.125 Y=     1.313 Z=    -0.063
   X=    -2.188 Y=     1.188 Z=     0.313

<repeats endlessly>