Sample program for based on LM393 Raindrop sensor, just have one function, return TRUE or FALSE

Dependencies:   mbed

Revision:
0:bbeffbedaccb
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Raindrop.h	Fri Feb 08 06:53:18 2019 +0000
@@ -0,0 +1,18 @@
+#ifndef _RAINDROP_H_
+#define _RAINDRIO_H_
+
+#include "mbed.h"
+
+class Raindrop
+{
+    private:
+        AnalogIn Raindrop_Ain;
+        DigitalIn Raindrop_Din;
+    
+    public:
+    Raindrop(PinName Ain, PinName Din);
+    
+    bool Check_Raindrop(void);
+};
+
+#endif
\ No newline at end of file