Sorry for the noobish question; I am brand-new to electronics and confused as this seems to contradict what I have learned.
I have a green LED, rated 2.6V at 28mA max. I'm running wire out of my Arduino's digital pin 8 to the top row of a breadboard, and a separate wire in a different row on the breadboard out to the Arduino's ground. Connecting the pin 8 row to the ground row is the green LED and a 100-ohm resistor in series.
My confusion is this. I was led to understand that if you did not have an appropriately sized resistor in series with the LED, it would quickly burn out due to the high current flowing through it. However, when I remove the 100 ohm resistor, the LED continues to be lit, but more brightly.
I know that digital pin 13 has a 1K-ohm resistor on it, but the other pins have no resistors in the circuit from the digital pin to ground (according to the schematics). What is my misunderstanding here?
For the curious, my code is as follows:
int ledPin = 8;
Thanks so much!