I know that Vin can be used to power the board but have also been reading that it can be used as a 5V output. Is it possible to assign Vin as an output as I would any other GPIO?
If I want to power an LED from GPIO 12, I would assign GPIO:
const int LEDpin_0 = 12; // D6, LED power pin
...and in the setup:
I can then turn on and off the LED based on whether or not GPIO 12 goes HIGH or LOW.
Can I do the same with Vin without resorting to relays or other hardware?