Mangue Baja Personalized MLX program

Dependencies:   mbed MY_MLX

Revision:
1:494ed2723916
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Aug 01 11:41:45 2019 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+ #include "my_mlx.h"
+ 
+ I2C i2c(PB_9, PB_8); //I2C_SDA, I2C_SCL 
+ Adafruit_MLX90614 mlx(&i2c);
+ Serial pc(PA_2, PA_3, 115200);
+ 
+ float temp;
+ int select; // 0 = object temp, 1 = ambient temp
+ 
+ int main(){
+    while(true){
+      temp=mlx.readAmbientTempC();
+      pc.printf("%4.2f Celcius\r\n", temp);
+      wait(1);
+    }
+}
\ No newline at end of file