Adafruit MCP960x Library
Public Member Functions | List of all members
Adafruit_MCP9601 Class Reference

MCP9601 driver. More...

#include <Adafruit_MCP9601.h>

Inheritance diagram for Adafruit_MCP9601:
Adafruit_MCP9600

Public Member Functions

 Adafruit_MCP9601 ()
 Instantiates a new MCP9601 class.
 
- Public Member Functions inherited from Adafruit_MCP9600
 Adafruit_MCP9600 ()
 Instantiates a new MCP9600 class.
 
boolean begin (uint8_t i2c_addr=MCP9600_I2CADDR_DEFAULT, TwoWire *theWire=&Wire)
 Sets up the I2C connection and tests that the sensor was found. More...
 
float readThermocouple (void)
 Read temperature at the end of the thermocouple. More...
 
float readAmbient (void)
 Read temperature at the MCP9600 chip body. More...
 
void enable (bool flag)
 Whether to have the sensor enabled and working or in sleep mode. More...
 
bool enabled (void)
 Whether the sensor is enabled and working or in sleep mode. More...
 
MCP9600_ThemocoupleType getThermocoupleType (void)
 The desired thermocouple type getter. More...
 
void setThermocoupleType (MCP9600_ThemocoupleType)
 The desired thermocouple type setter. More...
 
uint8_t getFilterCoefficient (void)
 The desired filter coefficient getter. More...
 
void setFilterCoefficient (uint8_t)
 The desired filter coefficient setter. More...
 
void setADCresolution (MCP9600_ADCResolution resolution)
 The desired ADC resolution setter. More...
 
MCP9600_ADCResolution getADCresolution (void)
 The desired ADC resolution getter. More...
 
int32_t readADC (void)
 Read the raw ADC voltage, say for self calculating a temperature. More...
 
void setAmbientResolution (Ambient_Resolution res_value)
 Sets the resolution for ambient (cold junction) temperature readings. More...
 
void setAlertTemperature (uint8_t alert, float temp)
 Setter for alert temperature setting. More...
 
float getAlertTemperature (uint8_t alert)
 Getter for alert temperature setting. More...
 
void configureAlert (uint8_t alert, bool enabled, bool rising, bool alertColdJunction=false, bool activeHigh=false, bool interruptMode=false)
 Configure temperature alert. More...
 
uint8_t getStatus (void)
 Getter for status register. More...
 

Additional Inherited Members

- Protected Attributes inherited from Adafruit_MCP9600
uint8_t _device_id = 0
 The DEVICE ID high byte for MCP9600 or MCP9601.
 

Detailed Description

MCP9601 driver.


The documentation for this class was generated from the following files: