Circuit design · LEDs and resistors
A microcontroller pin sags when it supplies current, and the resistance inside it belongs in every LED calculation you make.