upm  0.5.1
Sensor/Actuator repository for libmraa (v0.9.1)
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups Pages
Public Member Functions
MLX90614 Class Reference

API for the MLX90614 Temperature Sensor. More...

Detailed Description

This module defines the MLX90614 interface for libmlx90614

mlx90614.jpg
sensor = new upm::MLX90614(0, DEVICE_ADDR);
while (!doWork) {
std::cout << "Object Temperature (" << sensor->readObjectTempC() << ") Ambient Temperature (" << sensor->readAmbientTempC() << ")" << std::endl;
usleep (1000000);
}

Public Member Functions

 MLX90614 (int bus=0, int devAddr=0x5A)
 
float readObjectTempF (void)
 
float readAmbientTempF (void)
 
float readObjectTempC (void)
 
float readAmbientTempC (void)
 
std::string name ()
 

Constructor & Destructor Documentation

MLX90614 ( int  bus = 0,
int  devAddr = 0x5A 
)

Instantiates an MLX90614 object

Parameters
busNumber of the used bus
devAddrAddress of the used I2C device

Member Function Documentation

float readObjectTempF ( void  )

Reads the object temperature in Fahrenheit

float readAmbientTempF ( void  )

Reads the ambient temperature in Fahrenheit

float readObjectTempC ( void  )

Reads the object temperature in Celsius

float readAmbientTempC ( void  )

Reads the ambient temperature in Celsius

std::string name ( )
inline

Returns the name of the component


The documentation for this class was generated from the following files: