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.
Revision 9:724d3e39ded8, committed 2015-06-01
- Comitter:
- darzento
- Date:
- Mon Jun 01 10:21:18 2015 +0000
- Parent:
- 8:b162bf17271f
- Commit message:
- dd
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Jun 01 10:19:42 2015 +0000
+++ b/main.cpp Mon Jun 01 10:21:18 2015 +0000
@@ -11,6 +11,7 @@
DigitalOut dot_Point(); //Time point
BusOut hour(); //Hour hand
BusOut minute(); //Minute hand
+BusOut
InterruptIn hall(); //Hall sensor sensing interrupt
Timer timer;
@@ -23,7 +24,7 @@
int main()
{
hall.rise(&sensor); //rising edge operating
- int T = 0,t = 0
+ int a = 0;
while(1)
{
@@ -38,10 +39,8 @@
{
timer.stop();
- T = timer.read();
- t = T/360;
+ a = timer.read();
}
- t1 = timer1.read();
}
}
void sensor()
