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.
8 years, 10 months ago.
InterruptIn object has PinMode method ::mode() - but what is default pin mode? up/down/none
Not to nit pick, but if you were following "Rational" OO design methodology, you would have a private member set to a safe default of some kind. This clearly isn't the case here so it begs the question: what is the default mode for the pin?
Question relating to:
1 Answer
8 years, 10 months ago.
The default mode of the pin is PullDefault. What PullDefault is, depends on your target. And while this isn't perfect, the problem is that not every target supports each option.