Describe the samples using code-sample directive in preparation for upcoming changes to the Zephyr documentation that will be leveraging the provided description and metadata. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
13 lines
365 B
ReStructuredText
13 lines
365 B
ReStructuredText
.. zephyr:code-sample:: magn_polling
|
|
:name: Magnetometer Sensor
|
|
:relevant-api: sensor_interface
|
|
|
|
Get magnetometer data from a magnetometer sensor (polling mode).
|
|
|
|
Overview
|
|
********
|
|
|
|
Sample application that periodically reads magnetometer (X, Y, Z) data from
|
|
the first available device that implements SENSOR_CHAN_MAGN_* (predefined array
|
|
of device names).
|