Uso de Sensor de Ultrasonidos
Revision 1:42d7fd2a719e, committed 2011-02-24
- Comitter:
- cr0n0s20
- Date:
- Thu Feb 24 22:28:23 2011 +0000
- Parent:
- 0:3b305cf58a40
- Commit message:
- v 1.1
Changed in this revision
UltraSonidos.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 3b305cf58a40 -r 42d7fd2a719e UltraSonidos.cpp --- a/UltraSonidos.cpp Thu Feb 24 18:50:00 2011 +0000 +++ b/UltraSonidos.cpp Thu Feb 24 22:28:23 2011 +0000 @@ -14,9 +14,9 @@ _pinDigital = 0; wait_ms(2); _pinDigital = 1; - wait_ms(15); + wait_ms(5); _pinDigital = 0; - wait_ms(20); + _pinDigital.input(); duration = pulseIn(_pinDigital);