Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X Y and Z output register IDs seem incorrect #1

Open
DanielRIOT opened this issue Aug 27, 2019 · 0 comments
Open

X Y and Z output register IDs seem incorrect #1

DanielRIOT opened this issue Aug 27, 2019 · 0 comments

Comments

@DanielRIOT
Copy link

in LIS2DH12_Driver.h you have These values for the "L" register, but the values correspond to the "H" register, When you increment ( reading the raw value) then you're reading X(H) with Y(L)

#define LIS2DH12_REG_OUT_X_L 0x29 
#define LIS2DH12_REG_OUT_Y_L 0x2B 
#define LIS2DH12_REG_OUT_Z_L 0x2D 

Correct ones form the datasheet are :

#define LIS2DH12_REG_OUT_X_L 0x28 
#define LIS2DH12_REG_OUT_Y_L 0x2A 
#define LIS2DH12_REG_OUT_Z_L 0x2C 

LIS2DH12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant