2 or 3 LED colors on a single digital pin

Here is a tristate logic probe I made several years ago.

You can use it as is or as a building block for a new circuit.