zephyr/samples/drivers/i2c_lsm9ds0
David B. Kinder ac74d8b652 license: Replace Apache boilerplate with SPDX tag
Replace the existing Apache 2.0 boilerplate header with an SPDX tag
throughout the zephyr code tree. This patch was generated via a
script run over the master branch.

Also updated doc/porting/application.rst that had a dependency on
line numbers in a literal include.

Manually updated subsys/logging/sys_log.c that had a malformed
header in the original file.  Also cleanup several cases that already
had a SPDX tag and we either got a duplicate or missed updating.

Jira: ZEP-1457

Change-Id: I6131a1d4ee0e58f5b938300c2d2fc77d2e69572c
Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-01-19 03:50:58 +00:00
..
src license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
Makefile samples: tests: remove obsolete KERNEL_TYPE and kernel variables 2016-11-04 15:47:25 -04:00
README i2c: Enable QMSI driver for Quark D2000 2016-02-20 02:51:49 +00:00
prj.conf samples: i2c_lsm9ds0: we are using printk only 2016-04-30 13:43:31 -04:00

README

I2C LSM9DS0 Sample Application
==============================

This sample application illustrates how to use I2C APIs from Zephyr.
It requires an external device in order to work. The external device
is the accelerometer from LSM9DS0. The datasheet can be found in:
https://www.adafruit.com/datasheets/LSM9DS0.pdf

The application is very simple. It simply reads the 'WHO AM I' register
from the accelerometer and check if matches with the value described in
the datasheet.

Below follows the wiring information for each board this samples has been
tested.

--------------+-------------------+------------------
| LSM9DS0 pin | Quark SE Devboard | Quark D2000 CRB |
|             | pin               | pin             |
|-------------+-------------------+-----------------|
| VIN         | P4 pin 1          | J25 pin 1       |
| GND         | P4 pin 43         | J25 pin 2       |
| SCL         | P4 pin 31         | J21 pin 6       |
| SDA         | P4 pin 33         | J21 pin 5       |
| CSG         | P4 pin 29         | J25 pin 1       |
| SDOG        | P4 pin 17         | J25 pin 2       |
--------------+-------------------+------------------