LSM303 Python support


#1

Hi I’ve just ordered the ‘Triple-axis Accelerometer+Magnetometer (Compass) Board - LSM303’, I’ve just noticed I can’t find any python modules for the Pi to get this working, seems to be plenty for the Arduino and I’ve no idea how to port it from c to python - anyone already done this?

Many Thanks


#2

This should get you started: https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code/tree/master/Adafruit_LSM303

This GitHub repository is a treasure-trove of code examples for boards like this!


#3

excellent thanks- now where’s my soldering iron (searches garage) …