17 #ifndef _ADAFRUIT_ADT7410_H 18 #define _ADAFRUIT_ADT7410_H 21 #include <Adafruit_BusIO_Register.h> 22 #include <Adafruit_I2CDevice.h> 23 #include <Adafruit_Sensor.h> 25 #define ADT7410_I2CADDR_DEFAULT 0x48 27 #define ADT7410_REG__ADT7410_TEMPMSB 0x0 28 #define ADT7410_REG__ADT7410_TEMPLSB 0x1 29 #define ADT7410_REG__ADT7410_STATUS 0x2 30 #define ADT7410_REG__ADT7410_CONFIG 0x3 31 #define ADT7410_REG__ADT7410_ID 0xB 32 #define ADT7410_REG__ADT7410_SWRST 0x2F 48 bool getEvent(sensors_event_t *event);
54 int32_t _sensorID = 7410;
55 Adafruit_I2CDevice *i2c_dev = NULL;
#define ADT7410_I2CADDR_DEFAULT
I2C address.
Definition: Adafruit_ADT7410.h:25
bool setResolution(adt7410Resolution res)
Sets the current ADC resolution setting.
Definition: Adafruit_ADT7410.cpp:170
bool begin(uint8_t a=ADT7410_I2CADDR_DEFAULT, TwoWire *wire=&Wire)
Setups the HW.
Definition: Adafruit_ADT7410.cpp:43
bool reset(void)
Perform a soft reset.
Definition: Adafruit_ADT7410.cpp:75
adt7410Resolution
Definition: Adafruit_ADT7410.h:35
float readTempC()
Reads the 16-bit temperature register and returns the Centigrade temperature as a float...
Definition: Adafruit_ADT7410.cpp:90
Class that stores state and functions for interacting with ADT7410 Temp Sensor.
Definition: Adafruit_ADT7410.h:41
void getSensor(sensor_t *sensor)
Gets the sensor_t device data, Adafruit Unified Sensor format.
Definition: Adafruit_ADT7410.cpp:109
adt7410Resolution getResolution()
Gets the current ADC resolution setting.
Definition: Adafruit_ADT7410.cpp:153
bool getEvent(sensors_event_t *event)
Gets the most recent sensor event, Adafruit Unified Sensor format.
Definition: Adafruit_ADT7410.cpp:133
Adafruit_ADT7410()
Instantiates a new ADT7410 class.
Definition: Adafruit_ADT7410.cpp:35