Skip to content

Cross-platform C++ library for the STMicroelectronics LIS2MDL magnetometer

License

Notifications You must be signed in to change notification settings

BonaDrone/LIS2MDL

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains Arduino, Raspberry Pi (WiringPi), and Linux i2cdev libraries and examples for working with the STMicroelectronics LIS2MDL magnetometer. The class library and examples were adapted from Kris Winer's repository.

To use this library you will also need our cross-platform support library.

We have tested this EM7180 library on the following hardware:

  • Ladybug STM32L4 board from Tlera Corp

  • Teensy 3.2, 3.6

  • Raspberry Pi 3

  • NVIDIA Jetson TX1

RaspberryPi users should download and install WiringPi, then cd to extras/wiringpi, and run make to build the examples. You may have to run the examples as root: sudo ./Basic.

Users of NVIDIA Jetson and other Linux-based boards should install I2C support by running the command:

  sudo apt-get install libi2c-dev i2c-tools

You can then can cd to extras/i2cdev, and run make. You may have to run the examples as root: sudo ./Basic.

About

Cross-platform C++ library for the STMicroelectronics LIS2MDL magnetometer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 81.2%
  • Makefile 18.8%