Uso de Sensor de Ultrasonidos

Files at this revision

API Documentation at this revision

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);