What is the part I'm looking for called?

You could use a picAxe 40x2 to do it, depending on how fast you wanted it to switch.
$11.00 from sparkfun

(Of course, you could use the ATMega2560)