LIS302 Accelerometer

The LIS302 is a 3-axis accelerometer, accessible via a digital SPI interface with a selectable range of 2g or 8g.

Hello World

Import programLIS302_HelloWorld

Hello World for the LIS302 accelerometer library

Library

Import libraryLIS302

Interface for an LIS302 accelerometer, using the SPI interface

Datasheet

http://www.st.com/st-web-ui/static/active/en/resource/technical/document/datasheet/CD00135460.pdf

Notes

LIS302 Signal Namembed pin
VccVout
GndGnd
SCLp7
MOSIp5
MISOp6
CSp8

Hello World Wiring