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.
9 years, 5 months ago.
InterruptIn on pin change on Nucleo F401
I would like to define an InterruptIn on pin status change but InterruptIn.change() is not available, only .rise or .fall. Now I have used this method :
PinA.fall(&doPinA); PinA.rise(&doPinA); PinA.mode(PullUp);
Can anyone confirm that this is the way to get an interrupt on change ?
Thanks.
1 Answer
9 years, 5 months ago.
That should work yes, and indeed there is no specific pin change interrupt. What is your use case?