Class to read from and control a MLX90614 Temp Sensor.
More...
#include <Adafruit_MLX90614.h>
Class to read from and control a MLX90614 Temp Sensor.
◆ begin()
bool Adafruit_MLX90614::begin |
( |
uint8_t |
addr = MLX90614_I2CADDR , |
|
|
TwoWire * |
wire = &Wire |
|
) |
| |
Begin the I2C connection.
- Parameters
-
addr | I2C address for the device. |
wire | Pointer to Wire instance |
- Returns
- True if the device was successfully initialized, otherwise false.
◆ readObjectTempC()
double Adafruit_MLX90614::readObjectTempC |
( |
void |
| ) |
|
Get the current temperature of an object in degrees Celcius.
- Returns
- double The temperature in degrees Celcius or NAN if reading failed
◆ readAmbientTempC()
double Adafruit_MLX90614::readAmbientTempC |
( |
void |
| ) |
|
Get the current ambient temperature in degrees Celcius.
- Returns
- double The temperature in degrees Celcius or NAN if reading failed
◆ readObjectTempF()
double Adafruit_MLX90614::readObjectTempF |
( |
void |
| ) |
|
Get the current temperature of an object in degrees Farenheit.
- Returns
- double The temperature in degrees Farenheit or NAN if reading failed
◆ readAmbientTempF()
double Adafruit_MLX90614::readAmbientTempF |
( |
void |
| ) |
|
Get the current ambient temperature in degrees Farenheit.
- Returns
- double The temperature in degrees Farenheit or NAN if reading failed
◆ readEmissivityReg()
uint16_t Adafruit_MLX90614::readEmissivityReg |
( |
void |
| ) |
|
Read the raw value from the emissivity register.
- Returns
- uint16_t The unscaled emissivity value or '0' if reading failed
◆ writeEmissivityReg()
void Adafruit_MLX90614::writeEmissivityReg |
( |
uint16_t |
ereg | ) |
|
Write the raw unscaled emissivity value to the emissivity register.
- Parameters
-
ereg | The unscaled emissivity value |
◆ readEmissivity()
double Adafruit_MLX90614::readEmissivity |
( |
void |
| ) |
|
Read the emissivity value from the sensor's register and scale.
- Returns
- double The emissivity value, ranging from 0.1 - 1.0 or NAN if reading failed
◆ writeEmissivity()
void Adafruit_MLX90614::writeEmissivity |
( |
double |
emissivity | ) |
|
Set the emissivity value.
- Parameters
-
emissivity | The emissivity value to use, between 0.1 and 1.0 |
The documentation for this class was generated from the following files: