Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of football_project by
Diff: TA.h
- 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
