You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However I get the following error when I run the code:
terminate called after throwing an instance of 'std::runtime_error'
what(): [Exception] Channel 127 is invalid (catched from: GPIO::add_event_detect())
I followed the interrupt sample but can get my implementation to work, I hope you can help me.
Thank you for your time.
The text was updated successfully, but these errors were encountered:
Hello, I solved the problem already. Turns out the issue was with the order in which I was instantiating the object, which initiated before assigning a value to the pin number, resulting in a trash value.
Hello, I'm trying to use the add_event_detect with a callback function defined as follows:
However I get the following error when I run the code:
I followed the interrupt sample but can get my implementation to work, I hope you can help me.
Thank you for your time.
The text was updated successfully, but these errors were encountered: