# DPDT Switch Microcontroller

Is there a microcontroller equivalent of a DPDT Switch? I am trying to develop a product that requires remote reversal of polarity by incorporation some sort of an equivalent of the mechanism exhibited by a DPDT switch.

GPIO1 GPIO2  LED