Problem with LED brightness

miniafro:
I haven't checked if the pin had PWM and of course it didn't.

Even if the pin did have PWM, if you use digitalWrite() on the pin, you still only get on/off.

miniafro:
next time I'll be more patient

...and use code tags please!