Hi to everyone, i have the mpu6050 code and i have to change it with parameters of adxl345.
i have this definitions:
#define ADDRESS_WHO_AM_I (0x75U) //!< WHO_AM_I register identifies the device. Expected value is 0x68.
static const uint8_t expected_who_am_i = 0x68U;
and i have the datasheet of adxl345.
www.analog.com/.../ADXL345.pdf
i compare it with the mpu6050 datasheet but i'm not sure of it.
#define ADDRESS_WHO_AM_I (0x2D) static const uint8_t expected_who_am_i 0x53
is that write? other question. what's the difference between 0x53 and 0x53U? thanks in advance