SparkFun Qwiic LIS2DH12 Accelerometer (DEV-15760)
A simple to use I2C library for the very low power LIS2DH12 from ST.
This library can be installed via the Arduino Library manager. Search for SparkFun LIS2DH12. ST offers a great portable C library for the LIS2DH12. This library just wraps that library making it Arduino friendly and easier to use with lots of examples.
Want to help? Please do! We are always looking for ways to improve and build out features of this library.
- This library currently only supports I2C but could be expanded to use SPI as well.
Thanks to:
- tealbrains for reporting and fixing the setMode() bug
- /examples - Example sketches for the library (.ino). Run these from the Arduino IDE.
- /src - Source files for the library (.cpp, .h).
- keywords.txt - Keywords from this library that will be highlighted in the Arduino IDE.
- library.properties - General library properties for the Arduino package manager.
- Installing an Arduino Library Guide - Basic information on how to install an Arduino library.
- DEV-15136 - SparkFun Edge
- DEV-15005 - SparkFun Edge 2
- SPX-15210 - Qwiic LIS2DH12 Accelerometer Breakout
This product is open source!
Various bits of the code have different licenses applied. Anything SparkFun wrote is beerware; if you see me (or any other SparkFun employee) at the local, and you've found our code helpful, please buy us a round!
Please use, reuse, and modify these files as you see fit. Please maintain attribution to SparkFun Electronics and release anything derivative under the same license.
Distributed as-is; no warranty is given.
- Your friends at SparkFun.