Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Sensor/DistanceSensor.h
- 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