The latest development version of this page may be more current than this released 4.0.0 version.

Magnetometer Sensor

Browse source code on GitHub

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).

See also

Sensor Interface