uint16_t ADXL355_ReadTemperatureRaw(void)
{
uint8_t buf[2];
ADXL355_ReadRegisters_Sequential(ADXL355_TEMP2, buf);
uint16_t raw = ((buf[0] & 0x0F) << 8) | buf[1];
printf("TEMP2=0x%02X, TEMP1=0x%02X, RAW=%u\r\n",
buf[0], buf[1], raw);
return raw;
}
TEMP2=0x0B, TEMP1=0x9D, RAW=2973
AX=0.042 AY=0.012 AZ=1.070 Roll=0.67° Pitch=-2.23°
temp raw is 2973 ,but the tem is about 26℃。Why it is not 1852?Where can i get help.