What is the best way to implement an output but with also a led, so I can use the output for other purpose (for example a GPIO for a PIC, or a lot of logic gates) but with a led indicador that the output is in high? I want to preserve the enough current for the led, and have a nice HIGH (5V, 3.3V..) value I did 2 circuits, is there a better way?
simulate this circuit – Schematic created using CircuitLab