![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
rev1
Diff: main.cpp
- Revision:
- 1:459034942ff5
- Parent:
- 0:f6dbd5e25623
- Child:
- 2:a17516deccae
diff -r f6dbd5e25623 -r 459034942ff5 main.cpp --- 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(); + + } } }