API for MLX90614.
More...
- ID: mlx90614
- Name: MLX90614 Temperature Sensor
- Category: temperature
- Manufacturer: generic
- Connection: i2c
This file 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 |
|
) |
| |
Instanciates a MLX90614 object
- Parameters
-
bus | number of used bus |
devAddr | addres of used i2c device |
MLX90614 object destructor, basicaly it close i2c connection.
float readObjectTempF |
( |
void |
| ) |
|
Read object temperature in Fahrenheit
float readAmbientTempF |
( |
void |
| ) |
|
Read ambient temperature in Fahrenheit
float readObjectTempC |
( |
void |
| ) |
|
Read object temperature in Celsius
float readAmbientTempC |
( |
void |
| ) |
|
Read ambient temperature in Celsius
Return name of the component
The documentation for this class was generated from the following files:
- /var/lib/jenkins/workspace/upm-doc-stable/src/mlx90614/mlx90614.h
- /var/lib/jenkins/workspace/upm-doc-stable/src/mlx90614/mlx90614.cxx