I have designed a simple pcb with an esp8266 on it. It's using a micro-usb port for power and programming the esp. For my next version, I'm thinking about having both a micro-usb port and a USB-C port. They should function as alternatives: if either is plugged in, it should be possible to use it for power or data (usb2 only). I don't really care what the behavior is when both are plugged in, as long as that does not damage any hardware.
I have designed this schematic for this purpose:
\
Would this work the way I intend for it to?
I have designed this schematic for this purpose:
\Would this work the way I intend for it to?