Version finale

Dependencies:   mbed

Fork of Main_V3_Old by EI2I_4_projet_1_2017-2018

Revision:
3:534235b99bc6
Child:
4:784c4b53a3d4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Oct 02 12:47:09 2017 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+
+#include "TSL2561.h"
+
+
+//Déclaration variables
+TSL2561 LUM(PB_7,PB_6); // Luminosité (I2C:SDA,SCL)
+AnalogIn Humidite(PA_0);
+Serial PC(PA_2, PA_3);
+
+int main() {
+
+    while(1) {
+            printf("Lum: %f \r\n", LUM.lux());
+            printf("Hum: %f \n\r",Humidite.read());
+          
+        wait(1);
+    }
+}
\ No newline at end of file