Andriy Makukha / Mbed 2 deprecated football_project_wo_output

Dependencies:   mbed

Fork of football_project by MZJ

Revision:
50:efe0f3017848
Parent:
46:28c29ef61276
Child:
52:060fdec99780
--- a/TA.h	Tue Jan 12 14:50:32 2016 +0000
+++ b/TA.h	Tue Jan 12 21:08:31 2016 +0000
@@ -73,9 +73,9 @@
 static DigitalOut cap_enable;
 static DigitalOut buzzPin;
 
-static class EdgeDigIn touch_1;
-// static DigitalIn touch_1;
-static DigitalIn touch_2;
+static DigitalIn touch_1;
+static class EdgeDigIn touch_2;  // Reverted to original hw: Light bit 1 is top touch.
+// static DigitalIn touch_2;
 static DigitalIn touch_3;
 
 
@@ -144,7 +144,7 @@
 {
   public:
     uint8_t btnMsk;
-    EdgeDigIn( PinName pin, PinMode pull=PullNone, uint8_t btnMsk=1 ) : InterruptIn( pin ), btnMsk( btnMsk )
+    EdgeDigIn( PinName pin, PinMode pull=PullNone, uint8_t btnMsk=2 ) : InterruptIn( pin ), btnMsk( btnMsk )
     {
         mode( pull );                      // Set pull mode
         rise( this, &EdgeDigIn::risen  );  // Attach ISR for rise