Jens Strümper / MLX90614

Dependents:   Antarctic

Embed: (wiki syntax)

« Back to documentation index

MLX90614 Class Reference

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.