baba

Fork of HCSR04 by Antoniolinux B.

Revision:
1:ed19202e6224
Parent:
0:86b2086be101
--- a/hcsr04.h	Mon Apr 14 08:23:09 2014 +0000
+++ b/hcsr04.h	Thu Sep 29 17:00:34 2016 +0000
@@ -19,8 +19,7 @@
 //D12 TRIGGER D11 ECHO
    HCSR04 sensor(D12, D11); 
 int main() {
-    while(1) {
-        
+    while(1) {        
      long distance = sensor.distance();   
       printf("distanza  %d  \n",distance);
       wait(1.0); // 1 sec