API for the MLX90614 Temperature Sensor.
More...
This module defines the MLX90614 interface for libmlx90614
while (!doWork) {
std::cout << "Object Temperature (" << sensor.readObjectTempC()
<< ") Ambient Temperature (" << sensor.readAmbientTempC() << ")" << std::endl;
upm_delay_us(1000000);
}
MLX90614 |
( |
int |
bus = 0 , |
|
|
int |
devAddr = 0x5A |
|
) |
| |
Instantiates an MLX90614 object
- Parameters
-
bus | Number of the used bus |
devAddr | Address of the used I2C device |
float readObjectTempF |
( |
int |
objAddr = MLX90614_TOBJ1 | ) |
|
Reads the object temperature in Fahrenheit
- Parameters
-
objAddr | Object register for models with dual sensors Can be MLX90614_TOBJ1 (default) or MLX90614_TOBJ2 |
float readAmbientTempF |
( |
void |
| ) |
|
Reads the ambient temperature in Fahrenheit
float readObjectTempC |
( |
int |
objAddr = MLX90614_TOBJ1 | ) |
|
Reads the object temperature in Celsius
- Parameters
-
objAddr | Object register for models with dual sensors Can be MLX90614_TOBJ1 (default) or MLX90614_TOBJ2 |
float readAmbientTempC |
( |
void |
| ) |
|
Reads the ambient temperature in Celsius
Returns the name of the component
The documentation for this class was generated from the following files: