かんたくんのやつです。

Fork of HCSR04 by Prabhu Desai

Revision:
8:0fda00df4357
Parent:
7:71da0dbf4400
--- a/hcsr04.h	Sat Mar 30 18:55:03 2013 +0000
+++ b/hcsr04.h	Sat Sep 22 11:00:29 2018 +0000
@@ -53,16 +53,19 @@
     void isr_fall(void);
     void fall (void (*fptr)(void));
     void rise (void (*fptr)(void));
-
-
+    
+    void setTemp(int temp);
 
 private:
 
     Timer pulsetime;
+    float pulsetime_us;
+    unsigned int distance;
+    int temperature;
+    double maxTime;
+    double sonic;
     DigitalOut  trigger;
     InterruptIn echo;
-    unsigned int pulsedur;
-    unsigned int distance;
 };
 
 #endif
\ No newline at end of file