|
Adafruit TMP117 Library
|
Class that stores state and functions for interacting with the TMP119 High-Accuracy Temperature Sensor. More...
#include <Adafruit_TMP119.h>
Public Member Functions | |
| Adafruit_TMP119 () | |
| Construct a new Adafruit_TMP119::Adafruit_TMP119 object. | |
| bool | begin (uint8_t i2c_addr=TMP117_I2CADDR_DEFAULT, TwoWire *wire=&Wire, int32_t sensor_id=119) |
| Sets up the hardware and initializes I2C. More... | |
Public Member Functions inherited from Adafruit_TMP117 | |
| Adafruit_TMP117 () | |
| Construct a new Adafruit_TMP117::Adafruit_TMP117 object. | |
| ~Adafruit_TMP117 () | |
| Destroy the Adafruit_TMP117::Adafruit_TMP117 object. | |
| bool | begin (uint8_t i2c_addr=TMP117_I2CADDR_DEFAULT, TwoWire *wire=&Wire, int32_t sensor_id=117) |
| Sets up the hardware and initializes I2C. More... | |
| void | reset (void) |
| Performs a software reset initializing registers to their power on state. | |
| void | interruptsActiveLow (bool active_low) |
| Sets the polarity of the INT pin. More... | |
| bool | interruptsActiveLow (void) |
| Get the polarity of the INT pin. More... | |
| bool | getEvent (sensors_event_t *temp) |
| Gets the pressure sensor and temperature values as sensor events. More... | |
| bool | getAlerts (tmp117_alerts_t *alerts) |
| Get the current state of the alert flags. More... | |
| bool | thermAlertModeEnabled (bool therm_enabled) |
| Enable or disable "THERM" alert mode. More... | |
| bool | thermAlertModeEnabled (void) |
| Get the current enable status of the "THERM" alert mode. More... | |
| tmp117_average_count_t | getAveragedSampleCount (void) |
| Read the current number of samples that are averaged to calculate the reported temperature. More... | |
| bool | setAveragedSampleCount (tmp117_average_count_t count) |
| Set the number of raw measurements that are averaged into the reported temperature. More... | |
| float | getOffset (void) |
| Read the current temperature offset. More... | |
| bool | setOffset (float offset) |
| Write a new temperature offset. More... | |
| float | getLowThreshold (void) |
| Read the current low temperature threshold. More... | |
| bool | setLowThreshold (float low_threshold) |
| Set a new low temperature threshold. More... | |
| float | getHighThreshold (void) |
| Read the current high temperature threshold. More... | |
| bool | setHighThreshold (float high_threshold) |
| Set a new high temperature threshold. More... | |
| tmp117_delay_t | getReadDelay (void) |
| Get current setting for the minimum delay between calculated temperature reads. More... | |
| bool | setReadDelay (tmp117_delay_t delay) |
| Set a new minimum delay between calculated reads. More... | |
| tmp117_mode_t | getMeasurementMode (void) |
| Read the active measurement mode. More... | |
| bool | setMeasurementMode (tmp117_mode_t mode) |
| Set a new measurement mode. More... | |
| bool | dataReady (void) |
| Check if new temperature data is ready. More... | |
Protected Member Functions | |
| bool | _init (int32_t sensor_id) override |
| Initializer for post bus-init setup (TMP119 variant) More... | |
Protected Member Functions inherited from Adafruit_TMP117 | |
| void | waitForData (void) |
| Block until new data is ready. | |
Additional Inherited Members | |
Protected Attributes inherited from Adafruit_TMP117 | |
| uint16_t | _sensorid_temp |
| ID number for temperature. | |
| Adafruit_I2CDevice * | i2c_dev = NULL |
| Pointer to I2C bus interface. | |
| Adafruit_BusIO_Register * | config_reg |
| Pointer to config register object. More... | |
| Adafruit_BusIO_Register * | temp_reg |
| Temperature register, used regularly. More... | |
Class that stores state and functions for interacting with the TMP119 High-Accuracy Temperature Sensor.
| bool Adafruit_TMP119::begin | ( | uint8_t | i2c_address = TMP117_I2CADDR_DEFAULT, |
| TwoWire * | wire = &Wire, |
||
| int32_t | sensor_id = 119 |
||
| ) |
Sets up the hardware and initializes I2C.
| i2c_address | The I2C address to be used. |
| wire | The Wire object to be used for I2C connections. |
| sensor_id | The unique ID to differentiate the sensors from others |
|
overrideprotectedvirtual |
Initializer for post bus-init setup (TMP119 variant)
| sensor_id | Optional unique ID for the sensor set |
Reimplemented from Adafruit_TMP117.
1.8.13