Hello, I haven't had a chance to work on the LIS331 yet, but I did find some software on the ST site you can find it at the ST.com site. Just enter lis331 into the search and go to the Design Support tab.
There are two software libraries out there, one is found in the Unico directry Andre Labombarda and the other by Fabio Tota is in the Design Support at ST.com.
If you download Unico and Unico_Lite, the firmware is found in the STMicrocontroller folder. It has the lis331dlh_sw_driver.zip file and all the code for all the MEMS and is very, but complex. The one by Fabio Tota is simpler, you just have to cut and past the I2C and GPIO setup to into your code.
Last edited by STPrime (2011-09-26 16:30:36)