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

CAPsensor.h

Committer:
snapo
Date:
2021-11-01
Revision:
0:a9afa14d4795

File content as of revision 0:a9afa14d4795:

#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();


};