SparkFun_ADXL345_Arduino_Library icon indicating copy to clipboard operation
SparkFun_ADXL345_Arduino_Library copied to clipboard

Strange actions in powerOn()

Open AlexanderKokushkin opened this issue 6 years ago • 0 comments

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?

AlexanderKokushkin avatar Jan 03 '20 20:01 AlexanderKokushkin