Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/Bounce2.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 //
Expand Down