Class that stores state and functions for interacting with ADT7410 Temp Sensor.
More...
#include <Adafruit_ADT7410.h>
Class that stores state and functions for interacting with ADT7410 Temp Sensor.
◆ begin()
Setups the HW.
- Parameters
-
addr | The I2C address, defaults to 0x48 |
wire | The I2C interface, pointer to a TwoWire, defaults to WIre |
- Returns
- True if initialization was successful, otherwise false.
◆ reset()
bool Adafruit_ADT7410::reset |
( |
void |
| ) |
|
Perform a soft reset.
- Returns
- True on success
◆ readTempC()
float Adafruit_ADT7410::readTempC |
( |
| ) |
|
Reads the 16-bit temperature register and returns the Centigrade temperature as a float.
- Returns
- Temperature in Centigrade.
◆ getEvent()
bool Adafruit_ADT7410::getEvent |
( |
sensors_event_t * |
event | ) |
|
Gets the most recent sensor event, Adafruit Unified Sensor format.
- Parameters
-
event | Pointer to an Adafruit Unified sensor_event_t object that we'll fill in |
- Returns
- True on successful read
◆ getSensor()
void Adafruit_ADT7410::getSensor |
( |
sensor_t * |
sensor | ) |
|
Gets the sensor_t device data, Adafruit Unified Sensor format.
- Parameters
-
sensor | Pointer to an Adafruit Unified sensor_t object that we'll fill in |
◆ getResolution()
Gets the current ADC resolution setting.
- Returns
- The current ADC resolution setting.
◆ setResolution()
Sets the current ADC resolution setting.
- Parameters
-
res | The ADC resolution to set, either ADT7410_13BIT or ADT7410_16BIT. |
- Returns
- True on successful write otherwise false
The documentation for this class was generated from the following files: