football_project_wo_output

Dependencies:   mbed

Fork of football_project by MZJ

Revision:
36:9aa553f5189b
Parent:
31:a6110950f385
--- a/main.cpp	Wed Jan 06 16:57:57 2016 +0000
+++ b/main.cpp	Wed Jan 06 21:03:58 2016 +0000
@@ -568,6 +568,10 @@
 
 void periodicCallback( void )
 {
+    static int callCnt;
+    if( (callCnt++ % 5) != 0 )  return;
+    callCnt = 1;
+
 #if BLENANO
     led0 = !led0;
 #endif
@@ -600,7 +604,7 @@
 int main( void )
 {
     Ticker ticker;
-    ticker.attach( periodicCallback, 0.5 /*** 0.1 ***/ /* 1 */ );
+    ticker.attach( periodicCallback, 0.1 /** 0.5 **/ /* 1 */ );
 
   /*
     // Thread thread( led_thread );