HCSR04 library with public trigger
Fork of HCSR04 by
Revision 8:a85d86a02c94, committed 2015-12-09
- 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;