zephyr/samples/sensor/magn_polling
..
src
Makefile
prj.conf
README.txt

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