API for the MLX90614 Temperature Sensor.
More...
- ID: mlx90614
- Name: MLX90614 Temperature Sensor
- Category: temp
- Manufacturer: generic
- Connection: i2c
This module defines the MLX90614 interface for libmlx90614
while (!doWork) {
std::cout << "Object Temperature (" << sensor->readObjectTempC() << ") Ambient Temperature (" << sensor->readAmbientTempC() << ")" << std::endl;
usleep (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:
- /iotdk/jenkins/workspace/upm-doc-stable/src/mlx90614/mlx90614.hpp
- /iotdk/jenkins/workspace/upm-doc-stable/src/mlx90614/mlx90614.cxx