Updated i2c interface to work correctly with mBed and Hexiwear
Dependents: Hexi_Click_IRThermo_Example
Fork of MLX90614 by
Diff: mlx90614.h
- Revision:
- 0:9237d31f0d03
- Child:
- 1:4a60d3f1e91e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mlx90614.h Wed Jun 08 09:20:11 2011 +0000
@@ -0,0 +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;
+
+};
\ No newline at end of file
