diff --git a/src/Bounce2.h b/src/Bounce2.h index ff20589..142e0f1 100644 --- a/src/Bounce2.h +++ b/src/Bounce2.h @@ -201,6 +201,15 @@ class Bounce : public Debouncer 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 //