27 #include <mraa/i2c.hpp> 29 #define DEVICE_ADDR 0x5A // device address 32 #define MLX90614_RAWIR1 0x04 33 #define MLX90614_RAWIR2 0x05 34 #define MLX90614_TA 0x06 35 #define MLX90614_TOBJ1 0x07 36 #define MLX90614_TOBJ2 0x08 38 #define MLX90614_TOMAX 0x20 39 #define MLX90614_TOMIN 0x21 40 #define MLX90614_PWMCTRL 0x22 41 #define MLX90614_TARANGE 0x23 42 #define MLX90614_EMISS 0x24 43 #define MLX90614_CONFIG 0x25 44 #define MLX90614_ADDR 0x0E 45 #define MLX90614_ID1 0x3C 46 #define MLX90614_ID2 0x3D 47 #define MLX90614_ID3 0x3E 48 #define MLX90614_ID4 0x3F 85 MLX90614 (
int bus=0,
int devAddr=0x5A);
126 uint16_t i2cReadReg_N (
int reg,
unsigned int len, uint8_t * buffer);
127 mraa::Result i2cWriteReg_N (uint8_t reg,
unsigned int len, uint8_t * buffer);
128 float readTemperature (uint8_t address);
float readAmbientTempF(void)
Definition: mlx90614.cxx:59
MLX90614(int bus=0, int devAddr=0x5A)
Definition: mlx90614.cxx:34
float readObjectTempF(int objAddr=MLX90614_TOBJ1)
Definition: mlx90614.cxx:54
API for the MLX90614 Temperature Sensor.
Definition: mlx90614.hpp:76
float readAmbientTempC(void)
Definition: mlx90614.cxx:69
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
float readObjectTempC(int objAddr=MLX90614_TOBJ1)
Definition: mlx90614.cxx:64
std::string name()
Definition: mlx90614.hpp:115