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:
- 8:b162bf17271f
- Parent:
- 7:11a20cba4eae
- Child:
- 9:724d3e39ded8
--- a/main.cpp Mon May 18 15:27:16 2015 +0000
+++ b/main.cpp Mon Jun 01 10:19:42 2015 +0000
@@ -11,7 +11,6 @@
DigitalOut dot_Point(); //Time point
BusOut hour(); //Hour hand
BusOut minute(); //Minute hand
-BusOut
InterruptIn hall(); //Hall sensor sensing interrupt
Timer timer;
@@ -24,7 +23,7 @@
int main()
{
hall.rise(&sensor); //rising edge operating
- int a = 0;
+ int T = 0,t = 0
while(1)
{
@@ -39,8 +38,10 @@
{
timer.stop();
- a = timer.read();
+ T = timer.read();
+ t = T/360;
}
+ t1 = timer1.read();
}
}
void sensor()
