LIS3DH Analog input? #4995
Replies: 1 comment
-
Posted at 2021-06-17 by @gfwilliams It seems from http://www.espruino.com/modules/LIS3DH.js that the default address is 25 (0x19) - so that could be it? Also, if you've set up the LIS3DH module nothing stops you from calling Posted at 2021-06-17 by billsalt Thanks @gfwilliams! I kept reading 0x18 in the documentation, but on closer look I do indeed have it at 0x19. Also appreciate your suggestions of using acc.r/w. I'm now talking to the chip, but having issues getting the A/D turned on. I'll spend some more time on it, but right now I'm not getting any values out of the A/D register (after writing the enabling bits). I'll spend more time later today on this, but appreciate your guidance as always! Bill |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2021-06-16 by billsalt
Hi All,
I'm wanting to use the LIS3DH analog inputs along with accelerometer. I'm getting totally lost on addressing, it would appear. When I set it up using the LIS3DH module using the default address and read the accelerometer, everything is fine. When I try the following setup, I2C1.read returns a timeout error.
Gotta be something very simple that I'm doing wrong; help?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions