Bi-colour LED fun

hesinije

Member
Might be obsolete. But, ever wondered how to alternate between the colours of a bi-coloured LED with two legs without reversing the polarity of the power supply? Just connect each leg to e.g. output pins 1 and 2, then toggle the pins in such a way that when pin 1 is high pin 2 is low or when pin 1 is low pin 2 is high. For example:
main:
pulsout 1,10000
pause 400
pulsout 2,10000
pause 400
goto main

Have fun,
Herman, NL
 
Top