I've got - for example - pin 1, which has a current in (and therefore set as an input in the setup) and pin 2, which has to be routed to pin 1 (and therefore has pin 1's current out - which may NOT be the same as using Arduino's built in current out - and is set as an output in the setup).
Then, during the loop I need these two pin to be detached from each other (so that the current will still flow into pin 1 but won't flow out of pin 2) while two servos will move.
For example I supposed something like:
digitalWrite(secondpinPin, LOW);
myservo1.write(90);
myservo2.write(90);
digitalWrite(secondpinPin, HIGH);
But I don't know how to make them routed to each other for the rest of the time.
Thanks in advance!