Hi- How 'bout this, same as Roman's, but use a Normally-Closed Switch in series with the LEDs. Only uses 2 lines. Disadvantage is that the LEDs will extinquish when toy push the switch. Actually its a feature, it gives you feedback ;-) I don't think you even need the 33k, do you? David H +5v -------*---------------- | ------, | Bi-colour LED | 220 | A *------R---|------------------NC switch--, | | 1 | | | ,--*--, PIC | | | | | R 33k green - v red | | 2 ^ - B *----------*-----------------------, | | Bi-colour LED | | '--*--' | | | ------' '-----* A high, B low = RED A low, B high = GREEN (both inputs) B reads switch Roman Black wrote: > I had a think about it and this only took me about > 30 seconds (1st doodle). :o) > > Solution: (3 resistors, no parts in remote) > > +5v -------*---------------- > | > ------, | Bi-colour LED > | 220 | > A *------R---|-----------------------------, > | | 1 | > | | ,--*--, > PIC | | | | > | R 33k green - v red > | | 2 ^ - > B *----------*-----------------------, | | > | | '--*--' > | ,--R----------------, | | > ------' | 3k3 3 | '-----* > | | | > | | | > | | Switch > gnd | | > '--------' > A high, B low = RED > A low, B high = GREEN > (both inputs) B reads switch > -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu