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.
Diff: Input/Switch/Switch.cpp
- Revision:
- 4:ba9df71868df
- Parent:
- 2:c015739085d3
- Child:
- 16:3f2c2d89372b
diff -r e10d8736fd22 -r ba9df71868df Input/Switch/Switch.cpp
--- a/Input/Switch/Switch.cpp Sat Sep 22 10:58:25 2018 +0000
+++ b/Input/Switch/Switch.cpp Mon Oct 01 13:47:19 2018 +0000
@@ -12,6 +12,7 @@
};
DigitalIn limitSw(LS_PIN);
+
DigitalOut selectPin[] = {
DigitalOut(SELECT0_PIN),
DigitalOut(SELECT1_PIN),
@@ -84,7 +85,7 @@
selectPin[1] = ch.s1;
selectPin[2] = ch.s2;
selectPin[3] = ch.s3;
-
+
wait_us(1);
return limitSw ? false : true;