Add get_pin to bounce object #79
@@ -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 //
|
||||
|
||||
Reference in New Issue
Block a user