Electronic – How to control a LED with two separate control circuits

controlledparalleltransistors

I have a LED controlled by a microcontroller.

I want to know how I can bypass this microcontroller so that I can control the LED with a separate current. Would I use transistors to switch between the two controllers to prevent backflow damage to my microcontroller? If so how?

Best Answer

Left circuit: If either controller wants the LED on, it turns on. High = 'on'

Right circuit: If either controller wants the LED off, it turns off. High = 'off'

schematic

simulate this circuit – Schematic created using CircuitLab