Anuj Patel
/
MLX90614_2
MLX90614 Basic Code
main.cpp
- Committer:
- apatel43
- Date:
- 2017-05-03
- Revision:
- 0:29adb7b2a6e3
File content as of revision 0:29adb7b2a6e3:
#include "mbed.h" #include "mlx90614.h" I2C i2c(p28,p27); //sda,scl MLX90614 thermometer(&i2c); Serial pc(USBTX,USBRX); float temp; int main() { if(thermometer.getTemp(&temp)) { pc.printf("Temperature : %f \r\n",temp); } wait(0.5); }