Руслан Бредун / Mbed 2 deprecated Santec

Dependencies:   mbed Watchdog

Revision:
0:858059db6068
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/E18_D80NK/E18_D80NK.h	Tue Nov 02 11:28:01 2021 +0000
@@ -0,0 +1,19 @@
+#pragma once
+
+#include "mbed.h"
+
+class E18_D80NK{
+private:
+	DigitalIn input;
+
+public:
+	/** Create an object of a library to work with the E18-D80NK
+	 * @param[PinName] inputPin - assigned pin to communicate with the sensor
+	 */
+	E18_D80NK(PinName);
+
+	/** Check if there is an obstacle in front of the sensor
+	 * @return - if there's an obstacle return 0, otherwise - 1
+	 */
+	int checkObstacle(void);
+};