Skip to content

Conversation

@facchinm
Copy link
Member

Moved from arduino/Arduino#5831

@straccio commented 14 days ago

A way to add member function for an interrupt callback.

std::function<void()> int_func =std::bind(&button::press,this);
attachInterrupt(digitalPinToInterrupt(pin),int_func,FALLING);

A way to add member function for an interrupt callback.

std::function<void()> int_func =std::bind(&button::press,this);
attachInterrupt(digitalPinToInterrupt(pin),int_func,FALLING);
@CLAassistant
Copy link

CLAassistant commented Apr 9, 2021

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants