Library to communicate with a ST LIS331DLH

History

Fixed bug in last release where getAccelZ was being cast to an int instead of a float. Changed the set range functions to preserve the contents of the CTRL_REG_4 register. Additionally, those functions now return the value written to the register. default tip

2014-06-17, by atommota [Tue, 17 Jun 2014 21:40:59 +0000] rev 10

Fixed bug in last release where getAccelZ was being cast to an int instead of a float. Changed the set range functions to preserve the contents of the CTRL_REG_4 register. Additionally, those functions now return the value written to the register.


Patch to correctly auto increment read registers

2014-06-17, by atommota [Tue, 17 Jun 2014 19:31:05 +0000] rev 9

Patch to correctly auto increment read registers


Fixed bug that returned int instead of float for X and Y axis.

2011-07-01, by atommota [Fri, 01 Jul 2011 21:07:25 +0000] rev 8

Fixed bug that returned int instead of float for X and Y axis.


Updated documentation to reflect engineering unit changes

2011-02-16, by atommota [Wed, 16 Feb 2011 21:12:59 +0000] rev 7

Updated documentation to reflect engineering unit changes


Changed output to engineering units that scale depending on range selected with provide range functions.

2011-02-16, by atommota [Wed, 16 Feb 2011 21:06:30 +0000] rev 6

Changed output to engineering units that scale depending on range selected with provide range functions.

Default range is +/- 4g\s


Fixed declaration bug

2011-01-07, by atommota [Fri, 07 Jan 2011 16:37:00 +0000] rev 5

Fixed declaration bug


Added support to set full scale ranges of 2, 4, and 8g\s

2011-01-07, by atommota [Fri, 07 Jan 2011 16:31:35 +0000] rev 4

Added support to set full scale ranges of 2, 4, and 8g\s
Updated LIS331DLH datasheet web reference


Changed WHO_AM_I reg name to play nicer with itg3200 library

2010-11-17, by atommota [Wed, 17 Nov 2010 18:34:25 +0000] rev 3

Changed WHO_AM_I reg name to play nicer with itg3200 library


Fixed some byte ordering

2010-11-17, by atommota [Wed, 17 Nov 2010 18:29:47 +0000] rev 2

Fixed some byte ordering


fixed some declaration bugs

2010-11-13, by atommota [Sat, 13 Nov 2010 00:01:57 +0000] rev 1

fixed some declaration bugs