bi-color T1 LED
thomas_pittin
Posts: 29
Hi,
i want to connect this diode (Bi Color T1 3/4 LED) to my boe-bot
the question is, what is the command to control this diode
thanks
Thomas
i want to connect this diode (Bi Color T1 3/4 LED) to my boe-bot
the question is, what is the command to control this diode
thanks
Thomas
Comments
You will want to have a 220 Ohm resistor on the LED to the pin.
A high on the pin will light it one color, and a low will light it the other color. Which color lights will depend on the polarity.
thanks a lot
Thomas
Another configuration has 3 pins with common cathode or common anode. Does your LED have 2, or 3 wires?
My LED have two wires.
i'll try your solution
thanks in advance
thanks
Since you have the basic 2 pin circuit running there is more you can do with them.
Using a counter, in this case CTRA, to quickly switch back and forth between the pins.
Here is a code snippet writen in FemtoBasic showing how to do this. In this case I have the Bicolored LED connecter between pins 18 and 17, but any two pins can be used.
Switching at 5Hz the LED kind of blinks.
Switching at 1KHz the LED appears steady in color.
OUTA selects the color and F selects the flash rate.
In this case there are 7 different color & blink combinations, there can be more.
Have fun!
Duane J