dillerdasker

Dependents:   RoboticHackathon RoboticHackathon2 RoboticHackathonFINAL

Revision:
1:d9083ad270f5
Parent:
0:506625fdcd0e
--- a/HCSR04.h	Sat Apr 05 07:55:59 2014 +0000
+++ b/HCSR04.h	Sat Apr 05 11:26:35 2014 +0000
@@ -32,17 +32,17 @@
 
 class HCSR04 {
   public:
-    HCSR04(PinName t, PinName e);
+    HCSR04(PinName t, PinName e, PinName t2, PinName e2);
     long echo_duration();
     long distance(int sys);
     
-    HCSR05();
+    
     long Echo_duration();
     long Distance(int sys);
 
     private:
-        DigitalOut trig;
-        DigitalIn echo;
+        DigitalOut trig, trig2;
+        DigitalIn echo, echo2;
         Timer timer;
         long duration,distacne_cm,distance_inc;
 };