AnalogWrite

For a more detailed explanation see:-
http://www.thebox.myzen.co.uk/Tutorial/PWM.html