praneshkmr / node-lsm303

Node.js Library for LSM303
MIT License
7 stars 7 forks source link

Change accelerometer API so object can have the resolution set at instantiation #9

Closed damoclark closed 7 years ago

damoclark commented 7 years ago

Hey Pranesh,

Thanks for sharing your work on your node-lsm303 library.

Just offering a PR for allowing the resolution of the accelerometer to be set by the user at instantiation. I changed the default resolution to -/+2Gauss in line with the spec sheet recommendations. This gave me more meaningful readings, but feel free to change if you wish.

Here is the spec sheet I used http://www.st.com/content/ccc/resource/technical/document/application_note/e6/f0/fa/af/94/5e/43/de/CD00269797.pdf/files/CD00269797.pdf/jcr:content/translations/en.CD00269797.pdf

Cheers, Damo.

damoclark commented 7 years ago

Hi again,

This PR too has errors in it. Instead of updating the PR, I'm going to delete it, and submit another.