Digital out PWM

I keep seeing that the Arduino can do PWM on the digital out pins (6 of them). However I am having trouble locating docs on how to do this. I know how to do it manually... However since it has support for it (allegedly :slight_smile: ) I would rather use the built in functionality. Any samples?

analogWrite(ledpin, value)


Have fun