Releases: nadavmatalon/MCP9802
Switched from 'WSWire' library to 'Wire' library for I2C communications
Merge pull request #6 from nadavmatalon/wire Switched from 'WSWire' library to 'Wire' library for I2C communications
Namespace
Added namespaces to prevent conflicts with other libraries
Switch from using String class to lighter PString Class
Changed auxiliary functions: MCP9802InfoStr() and MCP9802ComStr() to work with the PString class instead of the String class to further reduce memory footprint. For this purpose, added PString.h & PString.cpp files to /utility folder. In addition added "I2C STATUS" (CONNECTED / NOT CONNECTED) field to device information string.
License Change to MIT
License was changed from GNU (GPL) to MIT
Functionality Change: Hysteresis & Limit Value Setting
Small change in functionality: attempting to set hysteresis or limit beyond the legitimate range (-55°C - 125°C / -67°F - 257°F) now sets the register to the maximum/minimum allowable value rather than do nothing.
Fully Tested MCP9802 Driver Library for Arduino
The MCP9802 is a 9 to 12-Bit Single-Channel Temperature Sensor with Hysteresis & Limit (i.e. Alert) capabilities, as well as a hardware I2C interface.
This library contains a robust driver for the MCP9802 that exposes its entire functionality (i.e. Configuration, Temperature, Hysteresis, Limit, and Alert Settings), allowing the end-user to get/set data in degrees Celsius or Fahrenheit.