problem with pwm

Actually analogWrite (pin, vvv)

Only some pins support PWM - on the Uno, Mini, Mini Pro etc the PWM pins
are 3, 5, 6, 9, 10, 11