1.. _i3g4250d: 2 3I3G4250D: 3-axis digital output gyroscope 4######################################### 5 6Description 7*********** 8 9This sample application configures the gyroscope with a fixed 10sampling rate and polls the measurements with the same rate and 11displays the measurements along with a timestamp since startup. 12 13Requirements 14************ 15 16This sample application uses the I3G4250D sensor connected via 17SPI interface. This is the case for example for stm32f3_disco@E 18board devicetree. 19 20Building and Running 21******************** 22 23To build the application a board with I3G4250D on SPI interface 24has to be chosen, or a custom devicetree overlay has to be provided. 25Here STM32F3 discovery board is used. 26 27.. zephyr-app-commands:: 28 :zephyr-app: samples/sensor/i3g4250d 29 :board: stm32f3_disco@E 30 :goals: build flash 31 32Sample Output 33************* 34 35.. code-block:: console 36 37 *** Booting Zephyr OS build zephyr-v2.6.0-1897-ga09838064f26 *** 38 Set sensor sampling frequency to 200.000000 Hz. 39 Polling at 200.000000 Hz 40 12 ms: x 2454.031430 , y 2336.015410 , z -1800.030108 41 22 ms: x -248.003106 , y -268.979704 , z 6.018390 42 32 ms: x -214.989906 , y -237.023468 , z 6.013926 43 41 ms: x -193.978308 , y -205.032232 , z 2.000356 44 51 ms: x -158.986716 , y -171.014568 , z 3.969998 45 60 ms: x -138.979582 , y -153.003326 , z 3.978748 46 70 ms: x -120.981554 , y -129.982800 , z -13.971422 47 80 ms: x -106.984060 , y -112.967272 , z -80.006572 48