Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 10 months ago.
I have a question that value on interruptIn function
InterruptIn sth(value)
i have no idea what to use value on interrupt function
almost use pin number but i need data value
plz plz plz help me
1 Answer
10 years, 10 months ago.
Hi DGU MAC,
The handbook page for InterruptIn has an example of how to use it. As you mention it takes a pin name.
If you want it only to trigger on a certain value then perhaps an if statement inside the target function is the best thing.
Steve