Adafruit PCT2075 Arduino Library
Classes | Macros | Enumerations
Adafruit_PCT2075.h File Reference
#include "Arduino.h"
#include <Adafruit_BusIO_Register.h>
#include <Adafruit_I2CDevice.h>
#include <Wire.h>

Go to the source code of this file.

Classes

class  Adafruit_PCT2075
 Class that stores state and functions for interacting with the PCT2075 I2C Digital Potentiometer. More...
 

Macros

#define PCT2075_I2CADDR_DEFAULT   0x37
 Address is configured with pins A0-A2.
 
#define PCT2075_REGISTER_TEMP   0x00
 Temperature register (read-only)
 
#define PCT2075_REGISTER_CONFIG   0x01
 Configuration register.
 
#define PCT2075_REGISTER_THYST   0x02
 Hysterisis register.
 
#define PCT2075_REGISTER_TOS   0x03
 OS register.
 
#define PCT2075_REGISTER_TIDLE   0x04
 Measurement idle time registerconfiguration register.
 

Enumerations

enum  pct2075_mode_t { PCT2075_MODE_COMPARITOR, PCT2075_MODE_INTERRUPT }
 Mode options. More...
 
enum  pct2075_fault_count_t { PCT2075_FAULT_COUNT_1, PCT2075_FAULT_COUNT_2, PCT2075_FAULT_COUNT_4, PCT2075_FAULT_COUNT_6 }
 Faut count options. More...
 

Detailed Description

Author
Bryan Siepert (Adafruit Industries)

This is a library for the Adafruit PCT2075 breakout: https://www.adafruit.com/product/4369

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

BSD license (see license.txt)

Enumeration Type Documentation

◆ pct2075_mode_t

Mode options.

Allowed values for setMode.

Enumerator
PCT2075_MODE_COMPARITOR 

In comparitor mode, the sensor acts like a thermostat and will activate the INT pin when an alert is triggered. The INT pin will be deactiveated when the temperature falls below temperature_hysteresis.

PCT2075_MODE_INTERRUPT 

In interrupt mode the INT pin is activated once when a temperature fault is detected, and once more when the temperature falls below temperature_hysteresis. The alert is cleared by reading a value

◆ pct2075_fault_count_t

Faut count options.

Allowed values for setFaultCount.

Enumerator
PCT2075_FAULT_COUNT_1 

Raise an alert after 1 fault.

PCT2075_FAULT_COUNT_2 

Raise an alert after 2 faults.

PCT2075_FAULT_COUNT_4 

Raise an alert after 4 faults.

PCT2075_FAULT_COUNT_6 

Raise an alert after 6 faults.