Version finale

Dependencies:   mbed

Fork of Main_V3_Old by EI2I_4_projet_1_2017-2018

Revision:
7:2748b1a2742c
Parent:
6:f552ca0f5165
--- a/main.cpp	Mon Dec 18 14:00:21 2017 +0000
+++ b/main.cpp	Mon Jan 15 16:34:24 2018 +0000
@@ -10,12 +10,12 @@
 #define THERMOMETER DS18B20
 
 Serial serie(SERIAL_TX, SERIAL_RX);
-TSL2561 LUM(PB_7, PB_6); // Luminosité (I2C:SDA,SCL)
+TSL2561 LUM(PA_10, PA_9);
 DHT22 Tem_Hum_A(PA_11); // Température & Humidité air
 AnalogIn Humidite(PA_0);
 SSD1306 ecran(D3 /* cs */, D6/* reset */, A5 /* dc */, A4 /* clock */, D2 /* data */);
 //Serial PC(PA_2, PA_3);
-Serial sigfox(PA_9, PA_10);
+Serial sigfox(PA_2, PA_3);
 DigitalOut myled(LED1);
 
 int i, Hum_sol, Temp_sol, Lum, Temp_air, Hum_air;
@@ -43,6 +43,7 @@
         Hum_air = (int) (Tem_Hum_A.getHumidity()/10);
         Hum_sol = (int)(Humidite.read()* 100) ;
         Temp_sol = (int)device.readTemperature();
+        //TSL2561 LUM(PB_7, PB_6); // Luminosité (I2C:SDA,SCL)
         Lum = (int) LUM.lux();
         printf("Temperature air: %d\n\r", Tem_Hum_A.getTemperature()/10);
         printf("Hum air: %d\n\r", Tem_Hum_A.getHumidity()/10);
@@ -66,7 +67,7 @@
         ecran.printf("\r\n");
         ecran.printf("Temp sol = %d",Temp_sol );
         ecran.printf("\r\n");
-        ecran.printf("Hum sol = %f", Hum_sol);
+        ecran.printf("Hum sol = %f", Humidite.read()*100);
         ecran.printf("\r\n");
         ecran.update();
         ecran.clear();