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.
Fork of Pulse1 by
Revision 2:a91e76505e52, committed 2015-11-07
- Comitter:
- PabloViana
- Date:
- Sat Nov 07 22:07:03 2015 +0000
- Parent:
- 1:48651f86a80c
- Commit message:
- v1;
Changed in this revision
Pulse1.cpp | Show annotated file Show diff for this revision Revisions of this file |
Pulse1.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 48651f86a80c -r a91e76505e52 Pulse1.cpp --- a/Pulse1.cpp Thu Nov 07 03:34:00 2013 +0000 +++ b/Pulse1.cpp Sat Nov 07 22:07:03 2015 +0000 @@ -57,10 +57,13 @@ int PulseInOut::read_low_us() { pulsetime.reset(); io.input(); - while (io == 0) { + Temp1.start(); + while (io == 0 ) { } + while (io == 1) { } + pulsetime.start(); while (io == 0) { }
diff -r 48651f86a80c -r a91e76505e52 Pulse1.h --- a/Pulse1.h Thu Nov 07 03:34:00 2013 +0000 +++ b/Pulse1.h Sat Nov 07 22:07:03 2015 +0000 @@ -48,6 +48,8 @@ int startval; Timer pulsetime, runtime; DigitalInOut io; + Timer Temp1; + int flag1; }; #endif \ No newline at end of file