Paul__B:
You really should explain why you have two power supplies.
I want the power to the Arduino with one and not have the motors create noise and not have too much drain that will affect the Arduinos. The power requirements are close to 50A when everything is running at max, though that will most likely never happen and for just the briefest time if and when it does.
I have 18 Arduino modules on this project, 4 MP3 player modules, 4 audio amplifiers, 24 RGB LEDs, 12 IR Sensors, 6 4-digit seven-segment displays, LED displays 48 red LEDs, 48 Green LEDS, 6 dc motors (some large with high current draw under load , 6 servos, 2 WS2812B LED strips and much more.
I realize that one LED only draws 20mA or so but all together I do not want to current drain to affect the Arduinos. Yes, I could use one 50A power supply, but I happen to have 2 30A 12V power supplies and 2 30A 5V regulators. I am Using 12 V because I want to be able to run it off of batteries. I have 2 deep cycle batteries available as well. It will run off of 12v dc from 2 Deep cycle batteries (rated at 850CCA each) or 2 the power supplies. These are items I had available and did not need to purchase
When I wired the project I ran one line for the LEDs. Some will flash, but not all. This was a last minute decision and they were already wired to the 2nd power supply. The wiring harness runs next to the Arduino units that I want to use to flash the LEDs so taking the cathode ground wire seemed like an easy solution for this. I might have been wrong.
I am not sure how the fact that I am using 2 power supplies or why I am using 2 power supplies has anything to do with how to initialize the pin.
The LEDs, numerous, all are getting power from a separate power supply than the Arduino modules. The Arduinos, sound cards, IR sensors, RGB LEDS, and a few other things are using one supply. I would have had the RGB LEDS use a separate one, but I had a good stock of common cathode RGB LEDs so I used them.
I hope that helps to explain why I am using 2 30A power supplies. I could buy a 50A for $40, but I had 2 30A units already. I did the math on the current draw and with everything running is substantial, especially that of the motors.
I did not go into specifics about the entire project because I did not feel it was relevant to my question.
I hope this clarifies why I have 2 power supplies