One Pin Controls two LEDs


x D1 D2 y D1 D2 z D1 D2
INPUT ON ON INPUT OFF OFF INPUT OFF OFF
OUTPUT LOW ON OFF OUTPUT LOW ON OFF OUTPUT LOW ON OFF
OUTPUT HIGH OFF ON OUTPUT HIGH OFF ON OUTPUT HIGH OFF ON

In the right picture, you actually need four LEDs, so none of them will light up when [z] is in INPUT mode.



contact: nji(at)gmx.de