adafruit / Adafruit_LIS3DH

Arduino Library for Adafruit LIS3DH breakout board
Other
72 stars 57 forks source link

Update Adafruit_LIS3DH.cpp for correct 16g divider #5

Closed sellensr closed 8 years ago

sellensr commented 8 years ago

Changed divider from 2048 to 1365 for conversion. This reflects the different relative sensitivity documented in the data sheet. The previous code reads lower than the correct value by a factor of 8 mg/bit (assumed) / 12 mg bit (documented).

ladyada commented 8 years ago

you're right! thanks :)