Class for MCP9808 temperature sensor. More...
Classes | |
class | mcp9808.mcp9808 |
Class for MCP9808 temperature sensor.
This class contains various methods such as checking for a proper connection with the sensor, getting the current temperature in celsius or fahrenheit, and collecting data for a user-determined time interval/rate. Data is sent to and from the MCP sensor using I2C communication lines. More specifically, temperature measurements are sent through two bytes, with four of the bits representing various flags, and the remaining 12 bits containing temperature data.
See source code here: MCP Class Source Code