rev1

Dependencies:   mbed C12832

Revision:
1:459034942ff5
Parent:
0:f6dbd5e25623
Child:
2:a17516deccae
--- a/main.cpp	Thu Jun 25 15:29:26 2020 +0000
+++ b/main.cpp	Mon Jul 13 13:00:39 2020 +0000
@@ -19,31 +19,42 @@
         lcd.locate(0,0);
         lcd.printf("weight %.2f", weight);
         if (weight > 1230 && weight < 1360)
-        //pc.printf("TRUE");
-        {led1 = 1;
+        {
+        led1 = 1;
         led3 = 0;
-        led4 = 0;
+        led4 = 0; 
         
+            lcd.locate(0,20);
+            lcd.printf("TRUE");
+            wait(0.20);
+            lcd.cls();
+            }
             
-            }
+    
             if ( weight < 1229)
             {
                 led1 = 0;
                 led4 = 0;
                 led3 = 1;
-                
+            
+                lcd.locate(0,20);
+                lcd.printf("Missing QTY");
+                wait(0.20);
+                lcd.cls();
+                           
                 }
              if ( weight > 1361)
              {
                  led1 = 0;
                  led3 = 0;
                  led4 = 1;
-                 }   
-            
-            
-            
-                
-                
+                 
+                 lcd.locate(0,20);
+                 lcd.printf("EXCESS QTY");
+                 wait(0.20);
+                 lcd.cls();
+                 
+                 }        
                 
     }
 }