|
BTW: To calculate the resistor value:
lpt datapins are usually 0-5V
A = LED on Voltage
I = LED on current
resistorInOhms = (5-A)/I
so if A=3Volts and I=15ma
resistor = (5-3)/.015
which is 133Ohms. You can always start with a larger resistor if you aren't sure of the led specs. Say 512ohms and then reduce it until the brightness looks good. Don't exceed the LED forward biased current.
|