2 or 3 LED colors on a single digital pin

BTW

Make yourself a logic probe/pluser using the same idea:

The extra 1N4148 diodes are to keep the logic LEDs OFF when the probe is not touched to a circuit point.

3 Likes