10 years, 1 month 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

9 years, 8 months ago.

The same with PinMode. (I found it accidentally in PortInOut...) Thanks.

10 years, 1 month 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.