2 or 3 LED colors on a single digital pin

But D1 is reversed biased so the Q1 gate stays at +5V.