# 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.

Figure 1. A very simple polarity reversal circuit using two GPIOs. GPIO tricks.

GPIO1 GPIO2  LED
----- -----  -----
0     0    Off
1     0    Green
0     1    Red
1     1    Off