Sonar Simples

Dependencies:   HCSR04aa mbed

Fork of SonarSimples by Aqueles Que Não Sabem O Que Fazem

Revision:
3:09347b9e1264
Parent:
2:34736f22d8a1
diff -r 34736f22d8a1 -r 09347b9e1264 main.cpp
--- a/main.cpp	Thu Sep 29 17:09:11 2016 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-/**main.cpp
-#include "mbed.h"
-#include "hcsr04.h"
-//D12 TRIGGER D11 ECHO
-   HCSR04 sensor(D12, D11); 
-int main() {
-  while(1) {      
-     long distance = sensor.distance();   
-      printf("distanza  %d  \n",distance);
-      wait(1.0); // 1 sec  
-        }
-}
-*/