please post your circuit diagram. You might be powering that 3W led through your mcu io pins which might be the problem.