final

Dependencies:   mbed Servo NeoMatrix mbed-rtos 4DGL-uLCD-SE PinDetect PololuLedStrip

Revision:
4:2a561107cc01
Parent:
3:89e7deacb0c1
Child:
5:61e7a1d16b21
--- a/main.cpp	Mon Nov 23 21:23:57 2020 +0000
+++ b/main.cpp	Mon Nov 23 21:26:55 2020 +0000
@@ -31,8 +31,8 @@
 volatile float setWaterLevel = 0.5;
 volatile float setMositLevel = 0.5;
 volatile float setLightLevel = 0.5;
-volatile float ShadePosition = 0.0;
-volatile float PipePosition = 0.0;
+volatile float shadePosition = 0.0;
+volatile float pipePosition = 0.0;
 
 volatile int counting = 0; // keep track of how many seconds has passed
 
@@ -80,11 +80,11 @@
 void motors_function(void const *argument){
     while(1){
         shadePosition = 1-light; // raise the shade when light 
-        Shade = shadePosition);
-        led.write(shadePosition)
+        Shade = shadePosition;
+        led.write(shadePosition);
         
-        pipePosition = soil<0.6? 1:0;
-        pipe = pipePosition;
+        pipePosition = moist<0.6? 1:0;
+        Pipe = pipePosition;
         Thread::wait(1000);
     }
 }