Calculating LED current

You sure?
You need the forward voltage drop, normally about 1.8V, subtract this from the supply voltage then divide this by the current to get the resistance.
Remember you can only get 40mA from a pin and the 3V3 supply on many arduino modules is limited.