no thread

Dependents:   200_yotuba_21_uiChange

Revision:
0:d0a252247fec
Child:
2:35b3dd6f7f17
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/IRsensor.h	Mon Jun 24 07:29:14 2019 +0000
@@ -0,0 +1,17 @@
+#ifndef IRSENSOR_H
+#define IRSENSOR_H
+
+#include "mbed.h"
+
+class IRsensor{
+ public:
+    IRsensor(PinName pin);
+    float getDistance(int n);
+
+private:
+    float getInputvoltage();
+    float changeVtoD(float voltage);
+    AnalogIn a_in;
+};
+
+#endif