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:
- 3:26633efdb309
- Parent:
- 1:cd96d1c79a8b
- Child:
- 4:a1cb6536f303
--- a/main.cpp Thu Apr 02 14:19:37 2015 +0000
+++ b/main.cpp Fri Apr 03 07:01:57 2015 +0000
@@ -1,12 +1,20 @@
#include "mbed.h"
DigitalOut myled(LED1);
+InterruptIn Hall();
-int main() {
- while(1) {
- myled = 1;
- wait(0.2);
- myled = 0;
- wait(0.2);
+int sensing(&Hall);
+
+int main()
+{
+ while(1)
+ {
+
}
-}
\ No newline at end of file
+}
+
+int sensing()
+{
+
+ return ;
+}
\ No newline at end of file
