Andriy Makukha / Mbed 2 deprecated football_project_wo_output

Dependencies:   mbed

Fork of football_project by MZJ

Revision:
30:c60b0d52b067
Parent:
28:8e74ddc4f70f
Child:
31:a6110950f385
--- a/proto_code.cpp	Sun Jan 03 20:05:15 2016 +0000
+++ b/proto_code.cpp	Mon Jan 04 16:33:39 2016 +0000
@@ -18,7 +18,7 @@
 #define TRILAT_CONE      99
 
 #define DEBOUNCE_MS 100
-#define LIGHTS 0x07
+#define LIGHTS TOUCHLIGHTS
 #define FAKEOUT 0x08
 #define FAIL_QUICK 0x10
 #define SILENT 0x20
@@ -455,6 +455,7 @@
   switch(state_p)
   {
   case IDLE_P:
+    ta.setMask( DEFTOUCHMASK );
     if(!in_menu)
         ta.post_color((ta.activated())?0xFF:0xFF0000);
     break;
@@ -1065,7 +1066,7 @@
     unsigned long current = 0;
     unsigned long delta = 0;
     
-    writeToPhone("start: %d\r\n", st);
+///    writeToPhone("start: %d\r\n", st);
 
     while(1)
     {