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.pdfNotes
LIS302 Signal Name | mbed pin |
---|---|
Vcc | Vout |
Gnd | Gnd |
SCL | p7 |
MOSI | p5 |
MISO | p6 |
CS | p8 |