Andriy Makukha / Mbed 2 deprecated football_project_wo_output

Dependencies:   mbed

Fork of football_project by MZJ

Revision:
25:99f1399d40b3
Parent:
23:26f27c462976
Child:
26:40a0c775ff27
diff -r ff54dec20f55 -r 99f1399d40b3 TA.cpp
--- a/TA.cpp	Mon Dec 14 14:32:59 2015 +0000
+++ b/TA.cpp	Tue Dec 15 12:11:05 2015 +0000
@@ -291,12 +291,12 @@
     unsigned long t = millis() - powerup_start;
     if(t > powerup_toggle)
     {
-      buzzPin = !buzzPin;
+      //buzzPin = !buzzPin;
       powerup_toggle *= 1.2;
     }
     if(t > 1250)
     {
-      buzzPin = 0;
+      //buzzPin = 0;
       powering_up2 = false;
     }
   }
@@ -305,13 +305,13 @@
     unsigned long t = millis() - powerup_start;
     if(t > powerup_toggle)
     {
-      buzzPin = !buzzPin;
+      //buzzPin = !buzzPin;
       powerup_toggle *= 0.95;
       powerup_start = millis();
     }
     if(powerup_toggle < 10)
     {
-      buzzPin = 0;
+      //buzzPin = 0;
       powering_up1 = false;
     }
   }
@@ -321,18 +321,18 @@
         beeping = false;
     if(pulsing && (millis()-pulse_start > pulse_duration)) 
         pulsing = false;
-    if(beeping)
-        buzzPin = 1;
+    //if(beeping)
+        //buzzPin = 1;
     else if( pulsing && (((millis()-pulse_start) % pulse_period) < pulse_on))
     {
-      if(!(mask & SILENT))
-        buzzPin = 1;
+      //if(!(mask & SILENT))
+        //buzzPin = 1;
       mask_color(0);
     }
     else
     {
-      if(pulsing)mask_color(current_color);
-      buzzPin = 0;
+      //if(pulsing)mask_color(current_color);
+      //buzzPin = 0;
     }
   }