flameproof:
I just wonder, why I need to put one resistor in front of each LED and not simply use one R between LED GND and Arduino GND? Wouldn't that have the same effect?
If you only turn on one LED at a time, then you can use a common resistor. if you want to turn on more than one at a time, use separate resistors.