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:
- 5:2ead41027963
- Parent:
- 4:a1cb6536f303
- Child:
- 6:276d384f8483
--- a/main.cpp Fri Apr 03 07:11:41 2015 +0000
+++ b/main.cpp Fri Apr 03 14:11:53 2015 +0000
@@ -1,22 +1,30 @@
#include "mbed.h"
+/*****************************************************************************
+* *
+* *
+* *
+******************************************************************************/
+
DigitalOut myled(LED1);
-InterruptIn Hall();
+DigitalOut frame(); //Clock frame
+DigitalOut dot_Point(); //Time point
+BusOut hour(); //Hour hand
+BusOut minute(); //Minute hand
+InterruptIn hall(); //Hall sensor sensing interrupt
-void sensing();
+void sensing()
+{
+
+
+}
int main()
{
- Hall.rise(&Hall);
+ hall.rise(&sensing); //rising edge operating
while(1)
{
}
-}
-
-void sensing()
-{
-
-
-}
\ No newline at end of file
+}
\ No newline at end of file
