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.cpp
- Revision:
- 50:efe0f3017848
- Parent:
- 49:626e84ce5e52
- Child:
- 51:fabe54861f1b
diff -r 626e84ce5e52 -r efe0f3017848 TA.cpp
--- a/TA.cpp Tue Jan 12 14:50:32 2016 +0000
+++ b/TA.cpp Tue Jan 12 21:08:31 2016 +0000
@@ -134,8 +134,8 @@
#if 1
// inputs
-EdgeDigIn TA::touch_1( p0, PullNone ); // Top touch sensor.
-DigitalIn TA::touch_2( p12,PullDown ); // Test button (p6 [was] RSVD for lower button--p6 is last analog-in though.)
+DigitalIn TA::touch_1( p12,PullDown ); // Test button (p6 [was] RSVD for lower button--p6 is last analog-in though.)
+EdgeDigIn TA::touch_2( p0, PullNone ); // Top touch sensor.
DigitalIn TA::touch_3( p3, PullNone ); // /Power button (even though not a touch button.)
#endif
@@ -300,7 +300,7 @@
if (last_touch == 0 || millis()-last_touch > 3000)
{
- //writeToPhone("Touch value: %d\r\n", touch_1);
+ //writeToPhone("Touch value: %d\r\n", touch_2);
last_touch = millis();
}
