Basic class to interface with a 3-pin capacitive proximity sensor
Diff: CAPsensor.h
- Revision:
- 0:a9afa14d4795
diff -r 000000000000 -r a9afa14d4795 CAPsensor.h --- /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