Yeongsoo Kim / Mbed 2 deprecated Mecha_Distance_Sensor

Dependencies:   mbed

Revision:
0:64fe0ebc42c6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Sensor/DistanceSensor.h	Wed Nov 11 22:04:30 2020 +0000
@@ -0,0 +1,18 @@
+#ifndef MBED_DISTANCESENSOR_H
+#define MBED_DISTANCESENSOR_H
+
+#include "mbed.h"
+
+class DistanceSensor
+{
+public:
+    DistanceSensor(PinName a);
+    float getDistance_cm();
+
+protected:
+    float m_distance;
+    AnalogIn  m_analogIn;
+    
+};
+
+#endif //MBED_DISTANCESENSOR_H
\ No newline at end of file