Skip to content

Strange actions in powerOn() #18

@AlexanderKokushkin

Description

@AlexanderKokushkin

Hello, in function powerOn() I see that whole register POWER_CTL value instantly being changed from 0 to 16 and eventually to 8.

writeTo(ADXL345_POWER_CTL, 0);	// Wakeup
writeTo(ADXL345_POWER_CTL, 16);	// Auto_Sleep
writeTo(ADXL345_POWER_CTL, 8);	// Measure

Maybe you wanted to set all these bits ( 8Hz Frequency and AutoSleep and Measuring mode )? e.g. 24?

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