Recent implementation of a MLX90614 IR temperature sensor library based on the example code of Jonathan Jones. Working with the current I2C mbed library.
Fork of MLX90614 by
MLX90614.h
- Committer:
- shawe
- Date:
- 2017-02-17
- Revision:
- 1:b70477df5c75
- Parent:
- 0:755bd47fd6be
File content as of revision 1:b70477df5c75:
#ifndef MLX90614_H #define MLX90614_H #include "mbed.h" class MLX90614 { public: MLX90614(I2C *i2c); ~MLX90614(); float ambientTemp(); float objectTemp(); protected: float readTemp(uint8_t reg); private: I2C *i2c_; static const int default_addr = 0x00; static const int T_ambient = 0x06; static const int T_obj1 = 0x07; static const int ram_access = 0x00; }; #endif