Ultrasonic sensor
Dependents: Obstacle_Avoiding_Robot wireless_project_BLE
Fork of HCSR04 by
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);
}
