*NOTICE: Stresses beyond those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or other conditions beyond those indicated in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
So is it safe to deliver max current on any given digitalpin?
i presumed the LED would simply give brightness of 40ma's worth of brightness,
There is also a maximum total limit of 200mA for all pins combined.