PMW as digital output

Connect LED to PWM pin, with current limiting resistor.
Connect other end of LED/resistor combo to ground or supply (to taste).
Activate PWM using digitalWrite, or analogWrite (to taste)