Updated i2c interface to work correctly with mBed and Hexiwear
Dependents: Hexi_Click_IRThermo_Example
Fork of MLX90614 by
Diff: mlx90614.h
- Revision:
- 1:4a60d3f1e91e
- Parent:
- 0:9237d31f0d03
- Child:
- 2:01d333d06727
diff -r 9237d31f0d03 -r 4a60d3f1e91e mlx90614.h --- a/mlx90614.h Wed Jun 08 09:20:11 2011 +0000 +++ b/mlx90614.h Thu Jun 09 13:07:40 2011 +0000 @@ -1,26 +1,26 @@ -#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; - +#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; + }; \ No newline at end of file