PMW with duty cycle?

Read this : https://www.arduino.cc/en/Tutorial/SecretsOfArduinoPWM