8 years, 5 months ago.

Is it possible to use a variable without using the pins directly

My intention is to use an array to store the pins. In my codes, then i use these arrays to configure the pins as input or output so that the DigitalOut or DigitalIn etc is independent of the pins.

1 Answer

8 years, 5 months ago.

I'd tell you look up for the macro that refers to the port of the micro-controller that you want to use, and then assign it a value stored in a variable or read its value directly, but it's kinda of rough. Why don't you use DigitalInOut instead ? Should do the trick.