2019-07-19 06:28 AM
The Standard C platform-independent drivers for MEMS motion and environmental sensors
The LIS3DH Temperature Sensor is connected to ADC3
But lis3dh_temperature_raw_get() reads ADC1:
/**
* @brief Temperature output value.[get]
*
* @param ctx read / write interface definitions
* @param buff buffer that stores data read
* @retval interface status (MANDATORY: return 0 -> no Error)
*
*/
int32_t lis3dh_temperature_raw_get(lis3dh_ctx_t *ctx, uint8_t *buff)
{
int32_t ret;
ret = lis3dh_read_reg(ctx, LIS3DH_OUT_ADC1_H, buff, 1); // <<<<< HERE !!
return ret;
}
And why is it only reading the High byte?
Solved! Go to Solution.
2019-07-22 01:09 AM
Of course, the issue should have been resolved with the last commit.
2019-07-22 01:09 AM
Of course, the issue should have been resolved with the last commit.
2019-07-22 02:50 AM
"the last commit" being 2 hours ago.
:beaming_face_with_smiling_eyes: