• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

boards/04-Jan-2025-32

src/04-Jan-2025-5937

CMakeLists.txtD04-Jan-2025252 107

README.rstD04-Jan-20251.4 KiB4634

adxl362-trigger.confD04-Jan-2025148 62

prj.confD04-Jan-202569 43

sample.yamlD04-Jan-20251 KiB3736

README.rst

1.. zephyr:code-sample:: accel_trig
2   :name: Accelerometer trigger
3
4   Test and debug accelerometer with interrupts.
5
6Overview
7********
8
9This sample application demonstrates how to use 3-Axis accelerometers with triggers.
10
11Building and Running
12********************
13
14.. code-block:: devicetree
15
16  / {
17    aliases {
18      accel0 = &fxos8700;
19    };
20  };
21
22Make sure the aliases are in devicetree, then build and run with:
23
24.. zephyr-app-commands::
25   :zephyr-app: samples/sensor/accel_trig
26   :board: <board to use>
27   :goals: build flash
28   :compact:
29
30Sample Output
31=============
32
33.. code-block:: console
34
35     fxos8700@1d [m/s^2]:    (   -0.153229,    -0.057461,     9.931148)
36     fxos8700@1d [m/s^2]:    (   -0.153229,    -0.057461,     9.931148)
37     fxos8700@1d [m/s^2]:    (   -0.143653,    -0.057461,     9.921571)
38     fxos8700@1d [m/s^2]:    (   -0.153229,    -0.067038,     9.931148)
39     fxos8700@1d [m/s^2]:    (   -0.143653,    -0.067038,     9.921571)
40     fxos8700@1d [m/s^2]:    (   -0.134076,    -0.047885,     9.931148)
41     fxos8700@1d [m/s^2]:    (   -0.105345,    -0.038308,     9.940725)
42     fxos8700@1d [m/s^2]:    (   -0.105345,    -0.019154,     9.931148)
43     fxos8700@1d [m/s^2]:    (   -0.105345,    -0.028731,     9.921571)
44     fxos8700@1d [m/s^2]:    (   -0.095769,    -0.028731,     9.931148)
45     fxos8700@1d [m/s^2]:    (   -0.095769,    -0.009577,     9.940725)
46