Greenhouse Climate Observation Module
Dependencies: BSP_DISCO_F746NG DHT
Diff: main.cpp
- Revision:
- 4:accd2aab9abf
- Parent:
- 3:c21057907d21
- Child:
- 5:a551c6a7d99b
diff -r c21057907d21 -r accd2aab9abf main.cpp --- a/main.cpp Wed Feb 05 12:15:21 2020 +0000 +++ b/main.cpp Wed Feb 05 12:22:54 2020 +0000 @@ -27,9 +27,8 @@ /* Outputs */ DigitalOut Temp_LED(D3); // Red LED DigitalOut Humid_LED(D4); // Blue LED -DigitalOut Light_LED(D5); // Yellow LED +DigitalOut Heat_LED(D5); // Red LED DigitalOut Water_LED(D6); // Blue LED -DigitalOut Window_LED(D7); // Green LED /* Multithreads */ Thread tTimeCounter; @@ -223,9 +222,9 @@ void Vent_Air() { - Window_LED = 1; + Temp_LED = 1; wait(1); - Window_LED = 0; + Temp_LED = 0; if(simmode) { printf("Greenhouse temperature above sustainable levels. Venting air from Greenhouse to rectify. \n \r"); } @@ -233,9 +232,9 @@ void Heat_Lamp() { - Light_LED = 1; + Temp_LED = 1; wait(1); - Light_LED = 0; + Temp_LED = 0; if(simmode) { printf("Greenhouse temperature below acceptable levels. Turning on heat lamps to rectify. \n \r"); }