Other Parts Discussed in Thread: LM75B
Hello,
I am using HDC2010 sensor. I have gone through SNAA312 and I have few queries.
1) How to handle negative values. Whether negative values are in Two’s compliment and if I copy into int16_t will it be taken care automatically ?
int16_t i16TempActData = 0;
memcpy(&i16TempActData, &p8Data[0], 2); // Low and Higher byte of temperature
2) Humidity will be between 0 to 100. So there won’t be any negative value. Still it can have decimal part, so that whether we need to handle positive number with decimal part ?
Thanks & Regards
Vishnu Beema