tes ir atas semua

Dependencies:   mbed ADS1115 StepperMotor SRF05 TPA81new

Revision:
10:8722053fb75c
Parent:
9:ba07c0b8899f
Child:
12:1e3227a6fcd7
--- a/main.cpp	Fri Feb 16 12:36:40 2018 +0000
+++ b/main.cpp	Fri Feb 16 12:43:38 2018 +0000
@@ -68,7 +68,7 @@
     float ir_o = 0;
     float snd_o = 0;
     float uv_o = 0;
-    int ext = 1;        // Extinguisher state
+    int ext = 0;        // Extinguisher state
     
     int tcal = 0;   // Toggle calibration
     int fcal = 0;   // Force calibration
@@ -98,7 +98,7 @@
     while (1) {
         // LCD
         lcd.printf("%.1f L%.2f|%.2f\n", ir_o, line1_o, line2_o);
-        pc.printf("%.2fcm L%.2f|%.2f ", ir_o, line1_o, line2_o);
+        pc.printf("%.2fcm L%.2f|%.2f M%d ", ir_o, line1_o, line2_o, ext);
 
         lcd.printf("s%d u%d", (int)snd_o, (int)uv_o);
         pc.printf("s%.2f u%.2f ", snd_o, uv_o);