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, 2 months ago.
What Argument Values can we use for direction in constructor
The Constructor has the ability to take a direction argument, but the documentation does not show what values we can use. Could the documentation please be updated to reflect correct values.
Question relating to:
2 Answers
10 years, 2 months ago.
Hi,
PIN_INPUT/OUTPUT are symbols, values are target specific.
typedef enum { PIN_INPUT = 0, PIN_OUTPUT = 1 } PinDirection;
Thanks for reporting.
The doxygen doc should be revised, we will add it there.
I lokked at: https://developer.mbed.org/users/mbed_official/code/mbed/docs/cbbeb26dbd92/classmbed_1_1DigitalInOut.html and could not find any information.
posted by 09 Jun 2015