Add get_pin to bounce object #79

Open
kingjin94 wants to merge 1 commits from kingjin94/patch-1 into master
+9
View File
@@ -201,6 +201,15 @@ public:
attach(pin);
interval(interval_millis);
}
/**
@brief Return pin that this Bounce is attached to
@return integer identifier of the coupled pin
*/
inline int get_pin() const {
return this->pin;
};
////////////////
// Deprecated //