1 is a bad idea. It provides little brightness andif you make a mistake and set the pin into output mode you burn out the LED.
is what most people do
is only necessary if you need to drive lots of LEDs (or high power LEDs). Arduino pins can drive up 10 LEDs at 20ma per led (or a little less so you are not running at the absolute maximum rating) The absolute maximum per pin is 40ma but the total should be under 200ma
1 is a bad idea. It provides little brightness andif you make a mistake and set the pin into output mode you burn out the LED.
is what most people do
if 1.. provides little brightness, how could 2 be any better?
Not knowing anything about the microcontroller, and since I just need the LED to remain on all the time, I think what I'll do is hook the LED in series with a 200ohm resistor to the +5v leg of the 7805 on my Boarduino. That's the way I figure it anyway....(5v-1.2v)/.020A = 200ohms