1.. zephyr:code-sample:: fxas21002
2   :name: FXAS21002 Gyroscope Sensor
3   :relevant-api: sensor_interface
4
5   Get gyroscope data synchronously from an FXAS21002 sensor.
6
7Overview
8********
9
10A sensor application that demonstrates how to use the fxas21002 data ready
11interrupt to read gyroscope data synchronously.
12
13Building and Running
14********************
15
16This project outputs sensor data to the console. It requires an fxas21002
17sensor, which is present on the :ref:`hexiwear` board. It does not work on
18QEMU.
19
20.. zephyr-app-commands::
21   :zephyr-app: samples/sensor/fxas21002
22   :board: hexiwear/mk64f12
23   :goals: build
24   :compact:
25
26Sample Output
27=============
28
29.. code-block:: console
30
31   X=    -2.063 Y=     0.813 Z=     0.188
32   X=    -1.750 Y=     1.063 Z=     0.063
33   X=    -2.000 Y=     0.625 Z=     0.063
34   X=    -2.188 Y=     0.625 Z=     0.188
35   X=    -2.125 Y=     1.313 Z=    -0.063
36   X=    -2.188 Y=     1.188 Z=     0.313
37
38<repeats endlessly>
39