Function temperature_from_bytes
Source pub fn temperature_from_bytes(bytes: [u8; 2]) -> i16
Expand description
Joins the two bytes read from a temperature-format register.
§Arguments
bytes - the most significant byte then the least significant byte.
§Returns
The signed 16-bit register value.