Leong Kum Loong (NYP) / HCSR04

Dependents:   Utrasonic_Example

Files at this revision

API Documentation at this revision

Comitter:
reesey
Date:
Mon Dec 04 04:35:49 2017 +0000
Parent:
1:27ee973552a9
Commit message:
Written by Leong Kum Loong.; 04 Dec 2017, REV. 0; ; When HCSR04.h reference is included, DO NOT declare pin p21 & p22 as it is used by my library.

Changed in this revision

HCSR04.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/HCSR04.cpp	Mon Dec 04 01:31:51 2017 +0000
+++ b/HCSR04.cpp	Mon Dec 04 04:35:49 2017 +0000
@@ -50,7 +50,7 @@
         break;    
     }
 
-    interval.attach(findDistance, 0.1);
+    interval.attach(findDistance, 0.05);
 }
 
 //Retrieve distance stored.