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:
- 4:a1cb6536f303
- Parent:
- 3:26633efdb309
- Child:
- 5:2ead41027963
--- a/main.cpp Fri Apr 03 07:01:57 2015 +0000
+++ b/main.cpp Fri Apr 03 07:11:41 2015 +0000
@@ -3,18 +3,20 @@
DigitalOut myled(LED1);
InterruptIn Hall();
-int sensing(&Hall);
+void sensing();
int main()
{
+ Hall.rise(&Hall);
+
while(1)
- {
-
+ {
+
}
}
-int sensing()
+void sensing()
{
- return ;
+
}
\ No newline at end of file
