HCSR04 library with public trigger

Fork of HCSR04 by Prabhu Desai

Files at this revision

API Documentation at this revision

Comitter:
gorian
Date:
Wed Dec 09 21:49:01 2015 +0000
Parent:
7:71da0dbf4400
Commit message:
trigger is public

Changed in this revision

hcsr04.h Show annotated file Show diff for this revision Revisions of this file
--- a/hcsr04.h	Sat Mar 30 18:55:03 2013 +0000
+++ b/hcsr04.h	Wed Dec 09 21:49:01 2015 +0000
@@ -54,12 +54,12 @@
     void fall (void (*fptr)(void));
     void rise (void (*fptr)(void));
 
-
+    DigitalOut  trigger;
 
 private:
 
     Timer pulsetime;
-    DigitalOut  trigger;
+    
     InterruptIn echo;
     unsigned int pulsedur;
     unsigned int distance;