Skip to content

Library for I2C communication with ST LIS2DH12 low power accelerometer

License

Notifications You must be signed in to change notification settings

alexyuoouy/SparkFun_LIS2DH12_Arduino_Library

 
 

Repository files navigation

SparkFun LIS2DH12 Arduino Library

SparkFun Qwiic LIS2DH12

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:

Repository Contents

  • /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.

Documentation

Products That Use This Library

License Information

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.

About

Library for I2C communication with ST LIS2DH12 low power accelerometer

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 78.0%
  • C 22.0%