Did you have to make them a input in your coding or are they on a common bus for respective 5V, 3.3V, and GND?
Fair warning...a lot of words...
That is a good question. They are common - but can be software switched based upon the voltage source. Meaning, is the input 5 Volt source the USB C port or the GPIO pins.
In reviewing the schematic, both the 5v and 3.3v lines can be switched as input or output by software pin configs. Those pin configs (high or low) control FET switching circuits.
As an example, we need to send the 5 Volts connected to GPIO pin 2 (or pin 4) OUT to the P25RX. That requires two code lines.
| digitalWrite(PIN_USB_HOST_ENABLE, LOW); |
| digitalWrite(OUTPUT_CTR_5V, HIGH); |
The Pin USB Host Enable is set "Low". That "Low" controls the 5 Volt FET switching circuit to send power OUT the usb c port. The Output Ctr 5V is set "High". That "High" sends the 5 Volts connected to GPIO pin2 (or pin 4) OUT the usb c port.
I have not seen the optional battery case schematic. It attaches to the main Wio 40 pin GPIO connector. The software should still need to be configured as above. The Wio still needs to send 5 volts out the usb c port from the GPIO pins. The battery case has a usb c port for charging the small battery and powering the Wio. That battery circuit would be the 5 volt source to pin 2 (or pin 4).
So let's say we didn't plug the Wio into the P25RX, instead we plugged the USB C into a computer. Would there be 5 volts on pins 2 and 4?
Powering the Wio USB C by computer should provide the 5 volts to the pins by default. The 5 volts input on the USB C will still go through the FET switching circuits. It would be a good practice to write code to ensure the switching circuits are correctly configured.
A lot of words...that is just my understanding of how it works. I hope it helps.