Closed notEvil closed 5 months ago
Thanks - looks like there's already a library that should work for the new parts? At least it seems to send roughly the same register configs: http://www.espruino.com/LIS3DH
I'll put a link in the docs though.
They are similar but not the same (sampling rates differ for instance). With the updated information this issue is sufficiently solved imo. Thanks!
(found http://forum.espruino.com/conversations/259300/ which mentioned the "new" acc 8 years ago ^^)
Hi,
the page
https://github.com/espruino/EspruinoDocs/blob/44f20731474274e693064ed087a25043e9203798/devices/LIS302DL.md
states
Unfortunately this is not always true, "newer" boards have a LIS3DSH whose SPI protocol is slightly different:
I know the board isn't officially supported, but I thought you might update this page if its just copy-paste :)
edit: realized that a single
SPI1.send
and cast to int16 is sufficient