Added getPin

This commit is contained in:
Thomas O Fredericks
2021-06-28 16:41:16 -04:00
parent 68dc6f7830
commit 1645b897c8
+11 -1
View File
@@ -161,7 +161,7 @@ protected:
/**
@brief The Debouncer:Bounce class. Links the Deboucing class to a hardware pin.
@brief The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named, but it will be kept that so it stays compatible with previous code.
*/
class Bounce : public Debouncer
@@ -202,6 +202,16 @@ public:
attach(pin);
interval(interval_millis);
}
/**
@brief Return pin that this Bounce is attached to
@return integer identifier of the coupled pin
*/
inline int getPin() const {
return this->pin;
};
////////////////
// Deprecated //