Porting SparkFun_LSM9DS1_Arduino_Library to Raspberry Pi
LSM9DS1 Breakout Board (SEN-13284)
This library supports only I2C.
$ sudo apt-get install libi2c-dev
$ git clone git://git.drogon.net/wiringPi
$ cd wiringPi
$ git pull origin
$ ./build
$ git clone https://github.com/akimach/LSM9DS1_RaspberryPi_Library.git
$ cd LSM9DS1_RaspberryPi_Library
$ make
$ sudo make install
$ cd LSM9DS1_RaspberryPi_Library/example
$ sudo python LSM9DS1_Basic_I2C.py