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: main.cpp
- Revision:
- 10:2088b1935a93
- Parent:
- 7:e2b8461d4f05
- Child:
- 11:021210c59a95
diff -r 21d461d78db3 -r 2088b1935a93 main.cpp
--- a/main.cpp Thu Jun 07 10:17:27 2018 +0000
+++ b/main.cpp Thu Jun 07 10:22:01 2018 +0000
@@ -9,9 +9,11 @@
///p7
///p8
+//RAIL SENSORS - INT0,INT1
//INT0 - p9
-DigitalIn switch1(p9);
+InterruptIn sensors0(p9);
//INT1 - p10
+InterruptIn sensors1(p10);
///p11
///p12
@@ -43,9 +45,7 @@
DigitalOut greenled(p30);
-//Rail sensors
-InterruptIn sensors0(p9);
-InterruptIn sensors1(p10);
+
void interrupted(){