program for temperature reading with mlx90615

Dependencies:   crc8

Revision:
0:db513e91a2c9
Child:
2:c4552b8c47c0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Mlx90615.h	Wed Jul 15 18:20:00 2020 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+
+#ifndef __MLX_h
+#define __MLX_h
+#define EEPROM 0x10
+#define RAM 0x20
+    
+extern DigitalOut MLX_VCC;
+
+class Mlx90615
+{
+public:
+    void wake();
+    unsigned int sleep();
+    unsigned int read_temperature();
+    void erase_eeprom_address(unsigned char address);
+    void set_emissivity(float e);
+private:
+    unsigned int read(unsigned char memory, unsigned char address);
+    void write(unsigned char address, unsigned int value);
+};
+
+#endif // __MLX_h
\ No newline at end of file