![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Plant Monitoring Project
Dependencies: mbed SHT21_ncleee WakeUp SSD1306 DHT Adafruit_TCS34725 DS1820
Diff: main.cpp
- Revision:
- 33:b576ea9bf0e3
- Parent:
- 32:4bb8ec535357
- Child:
- 34:fb1b9c5e5cf3
--- a/main.cpp Thu Dec 12 16:25:33 2019 +0000 +++ b/main.cpp Tue Dec 17 18:45:22 2019 +0000 @@ -75,7 +75,7 @@ pr = red*100/somme; pg = green*100/somme; pb = blue*100/somme; - lum = clear; + lum = (unsigned short) RGBsens.calculateLux(red, green, blue); #ifdef DEBUG pc.printf("luminosite : %d \n\r", lum); pc.printf("rouge:%d vert:%d bleu:%d \n\r", pr, pg, pb); @@ -127,6 +127,8 @@ #ifdef INTERRUPTEUR interrupteur = 1; wait_ms(100); + RGBsens.begin(); + wait_ms(100); #endif #ifdef DEBUG pc.printf("Reading Data\n\r");