Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
MLX90614 Class Reference
Due to changes in mbed's I2C stack older implementation of the MLX9064 library do currently not work. More...
#include <MLX90614.h>
Detailed Description
Due to changes in mbed's I2C stack older implementation of the MLX9064 library do currently not work.
This recent implementation wraps the example code of Jonathan Jones into a library.
The float read_temp(int select) memeber function will take one argument:
- "0" to return ambient temperature
- "1" to retunr object temperature
Example:
#include "mbed.h" #include "MLX90614.h" I2C i2c(p16, p17); //I2C_SDA, I2C_SCL MLX90614 mlx90614(&i2c); float temp; int select; // 0 = object temp, 1 = ambient temp int main(){ while(true){ temp=mlx90614.read_temp(1); printf("%4.2f Celcius\r\n", temp); wait(1); } }
Definition at line 62 of file MLX90614.h.
Generated on Tue Jul 12 2022 15:22:03 by
1.7.2