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: E18_D80NK/E18_D80NK.h
- Revision:
- 0:858059db6068
diff -r 000000000000 -r 858059db6068 E18_D80NK/E18_D80NK.h
--- /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);
+};