Basic class to interface with a 3-pin capacitive proximity sensor

Revision:
0:a9afa14d4795
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CAPsensor.h	Mon Nov 01 12:34:36 2021 +0000
@@ -0,0 +1,15 @@
+#pragma once
+#include "mbed.h"
+
+class capacitorSensor {
+    
+    AnalogIn capSense_;
+    int capReadings_;
+    
+public:
+    //ensure the PinName included is one of the analog pins else the class will function incorrectly.
+    capacitorSensor (PinName capSense);
+    void capReading();
+
+
+};
\ No newline at end of file