zephyr/samples/nanokernel/apps/spi_lsm9ds0
Vinicius Costa Gomes 9442446944 samples: Add a sample SPI application
This application reads the 'WHO AM I' register from a LSM9DS0
sensor connected over SPI.

Change-Id: I7b0631e9bc783aea60fdb489f40058e0c15275fb
Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-02-05 20:25:29 -05:00
..
src samples: Add a sample SPI application 2016-02-05 20:25:29 -05:00
Makefile samples: Add a sample SPI application 2016-02-05 20:25:29 -05:00
README samples: Add a sample SPI application 2016-02-05 20:25:29 -05:00
prj.conf samples: Add a sample SPI application 2016-02-05 20:25:29 -05:00

README

SPI Test Application

This application just retrieves the 'WHO AM I' register from the
Accelerometer from a LSM9DS0 connected via API.

The device datasheet can be found here:
https://www.adafruit.com/datasheets/LSM9DS0.pdf

Wiring information:

| LSM9DS0 pin | Quark SE Devboard  |
|             |	pin		   |
|-------------+--------------------|
| VIN         | VDD_HDR_3P3        |
| CS_G        | GPIO24_SPI0_M_nCS0 |
| CS_XM       | VDD_HDR_3P3        |
| SCL         | GPIO24_SPI0_M_SCLK |
| SDO_G       | GPIO24_SPI0_M_MISO |
| SDO_XM      | Ground             |
| SDA         | GPIO24_SPI0_M_MISO |
| GND         | Ground             |