Updated i2c interface to work correctly with mBed and Hexiwear
Dependents: Hexi_Click_IRThermo_Example
Fork of MLX90614 by
mlx90614.h
- Committer:
- aquahika
- Date:
- 2011-06-09
- Revision:
- 1:4a60d3f1e91e
- Parent:
- 0:9237d31f0d03
- Child:
- 2:01d333d06727
File content as of revision 1:4a60d3f1e91e:
#include "mbed.h"
//Melexis Infrared Thermometer MLX90614 Library
//*****************************************************************
// Build : 2011-06-08 Hikaru Sugiura
// Only read thermo data.
//
// This program is based on Mr.Mitesh Patel's "mlx90614".
// http://mbed.org/users/mitesh2patel/programs/mlx90614/lqnetj
//
// This program does not check CRC.
// If you want to check CRC, please do it your self :)
//****************************************************************//
class MLX90614{
public:
MLX90614(I2C* i2c,int addr=0xB4);
bool getTemp(float* temp_val);
private:
I2C* i2c;
int i2caddress;
};
