Identifying a pin #9770
-
Hello to everybody, sorry for the naive first question, I can't figure out how to reliably identify the calling pin into a generic irq callback function. The sources and some tests/examples suggest to use
Any kind of unique identifier in principle would be acceptable. Actually there is this possibility:
but is seems quite awkward to use the object string representation (and I am not sure it is allowed in a callback), is there a better portable way to do that? Thanks, Davide |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Apparently not.
seems to be custom. |
Beta Was this translation helpful? Give feedback.
-
Thanks While investigating further, I found this example, see #9433 (comment) |
Beta Was this translation helpful? Give feedback.
-
Just to complete the discussion, for future memory, this example should do the job, the IRQ callback has access to the full class instance, including any arbitrary information:
|
Beta Was this translation helpful? Give feedback.
Apparently not.
Something like
seems to be custom.