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.
Dependents: Obstacle_avoidance servourfmatlab hcsr04 DistanceOnSevenSegLed ... more
Revision 1:093521f56089, committed 2013-03-30
- Comitter:
- prabhuvd
- Date:
- Sat Mar 30 17:32:04 2013 +0000
- Parent:
- 0:fb0929f37ebe
- Child:
- 2:0acb6ade091c
- Commit message:
- version 1.1 interrupt routines associate with echo pin
Changed in this revision
| hcsr04.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/hcsr04.cpp Sat Mar 30 17:27:39 2013 +0000
+++ b/hcsr04.cpp Sat Mar 30 17:32:04 2013 +0000
@@ -26,8 +26,8 @@
{
pulsetime.stop();
pulsetime.reset();
- // this.rise(&DistMeasure::isr_rise);
- // this.fall(&DistMeasure::isr_fall);
+ echo.rise(this,&DistMeasure::isr_rise);
+ echo.fall(this,&DistMeasure::isr_fall);
}