0a7b730e23
The DS18S20 has only 1 fractional bit whereas DS18B20 has 4, and their temperature register alignment differs. Check the family code to choose the correct multiplier for both devices. Closes #610 Negative temperatures (less than 0°C) are returned as a sign-extended two's complement number. Subtract 0x10000 to recover the proper negative value. Signed-off-by: Nick Andrew <nick@nick-andrew.net> |
||
---|---|---|
.. | ||
base64 | ||
bh1750 | ||
bmp085 | ||
dht_lib | ||
ds18b20 | ||
ds3231 | ||
hdc1000 | ||
http | ||
lm92 | ||
mcp23008 | ||
redis | ||
si7021 | ||
tsl2561 | ||
yeelink |