Skip to content

X Y and Z output register IDs seem incorrect #1

Description

@DanielRIOT

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions